mirror of
https://github.com/postgres/postgres.git
synced 2025-06-11 20:28:21 +03:00
Use FLEXIBLE_ARRAY_MEMBER for HeapTupleHeaderData.t_bits[].
This requires changing quite a few places that were depending on sizeof(HeapTupleHeaderData), but it seems for the best. Michael Paquier, some adjustments by me
This commit is contained in:
@ -519,7 +519,7 @@ postgresGetForeignRelSize(PlannerInfo *root,
|
||||
{
|
||||
baserel->pages = 10;
|
||||
baserel->tuples =
|
||||
(10 * BLCKSZ) / (baserel->width + sizeof(HeapTupleHeaderData));
|
||||
(10 * BLCKSZ) / (baserel->width + MAXALIGN(SizeofHeapTupleHeader));
|
||||
}
|
||||
|
||||
/* Estimate baserel size as best we can with local statistics. */
|
||||
|
Reference in New Issue
Block a user