Skip to content

Commit 604e993

Browse files
committed
Add opaque declaration of HTAB to tqual.h.
Commit b89e151 added the ResolveCminCmaxDuringDecoding declaration to tqual.h, which uses an HTAB parameter, without declaring HTAB. It accidentally fails to fail to build with current sources because a declaration happens to be included, directly or indirectly, in all source files that currently use tqual.h before tqual.h is first included, but we shouldn't count on that. Since an opaque declaration is enough here, just use that, as was done in snapmgr.h. Backpatch to 9.4, where the HTAB reference was added to tqual.h.
1 parent 7845db2 commit 604e993

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/include/utils/tqual.h

+1
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ extern bool HeapTupleHeaderIsOnlyLocked(HeapTupleHeader tuple);
9494
* To avoid leaking too much knowledge about reorderbuffer implementation
9595
* details this is implemented in reorderbuffer.c not tqual.c.
9696
*/
97+
struct HTAB;
9798
extern bool ResolveCminCmaxDuringDecoding(struct HTAB *tuplecid_data,
9899
Snapshot snapshot,
99100
HeapTuple htup,

0 commit comments

Comments
 (0)