mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +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:
@ -932,7 +932,7 @@ estimate_size(PlannerInfo *root, RelOptInfo *baserel,
|
||||
int tuple_width;
|
||||
|
||||
tuple_width = MAXALIGN(baserel->width) +
|
||||
MAXALIGN(sizeof(HeapTupleHeaderData));
|
||||
MAXALIGN(SizeofHeapTupleHeader);
|
||||
ntuples = clamp_row_est((double) stat_buf.st_size /
|
||||
(double) tuple_width);
|
||||
}
|
||||
|
Reference in New Issue
Block a user