Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7a567d9

Browse files
committed
MAPSIZE macro needs to use MAXALIGN(SizeOfPageHeaderData) instead of
SizeOfPageHeaderData, like PageGetContents does. Per report by PavanDeolasee.
1 parentb61318d commit7a567d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/access/heap/visibilitymap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/access/heap/visibilitymap.c,v 1.1 2008/12/03 13:05:22 heikki Exp $
11+
* $PostgreSQL: pgsql/src/backend/access/heap/visibilitymap.c,v 1.2 2008/12/06 17:31:37 heikki Exp $
1212
*
1313
* INTERFACE ROUTINES
1414
*visibilitymap_clear- clear a bit in the visibility map
@@ -101,7 +101,7 @@
101101
* extra headers, so the whole page minus except for the standard page header
102102
* is used for the bitmap.
103103
*/
104-
#defineMAPSIZE (BLCKSZ - SizeOfPageHeaderData)
104+
#defineMAPSIZE (BLCKSZ -MAXALIGN(SizeOfPageHeaderData))
105105

106106
/* Number of bits allocated for each heap block. */
107107
#defineBITS_PER_HEAPBLOCK 1

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp