From e1a11d93111ff3fba7a91f3f2ac0b0aca16909a8 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sat, 21 Feb 2015 15:13:06 -0500 Subject: 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 --- src/backend/executor/nodeHash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/backend/executor/nodeHash.c') diff --git a/src/backend/executor/nodeHash.c b/src/backend/executor/nodeHash.c index abd70b3b1b3..b1f6c824329 100644 --- a/src/backend/executor/nodeHash.c +++ b/src/backend/executor/nodeHash.c @@ -439,7 +439,7 @@ ExecChooseHashTableSize(double ntuples, int tupwidth, bool useskew, * don't count palloc overhead either. */ tupsize = HJTUPLE_OVERHEAD + - MAXALIGN(sizeof(MinimalTupleData)) + + MAXALIGN(SizeofMinimalTupleHeader) + MAXALIGN(tupwidth); inner_rel_bytes = ntuples * tupsize; -- cgit v1.2.3