summaryrefslogtreecommitdiff
path: root/src/include/utils/tqual.h
diff options
context:
space:
mode:
authorKevin Grittner <kgrittn@postgresql.org>2015-06-27 09:55:06 -0500
committerKevin Grittner <kgrittn@postgresql.org>2015-06-27 09:55:06 -0500
commit604e99396de02f6f23950ee373c13335d2ccdf05 (patch)
tree44d904ac329f1ec1a40dd8d3aa415695dd499556 /src/include/utils/tqual.h
parent7845db2aa778aa751b41cff72c41c94993e975e3 (diff)
downloadpostgresql-604e99396de02f6f23950ee373c13335d2ccdf05.tar.gz
Add opaque declaration of HTAB to tqual.h.
Commit b89e151054a05f0f6d356ca52e3b725dd0505e53 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.
Diffstat (limited to 'src/include/utils/tqual.h')
-rw-r--r--src/include/utils/tqual.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/utils/tqual.h b/src/include/utils/tqual.h
index ee8345e409..267d956501 100644
--- a/src/include/utils/tqual.h
+++ b/src/include/utils/tqual.h
@@ -94,6 +94,7 @@ extern bool HeapTupleHeaderIsOnlyLocked(HeapTupleHeader tuple);
* To avoid leaking too much knowledge about reorderbuffer implementation
* details this is implemented in reorderbuffer.c not tqual.c.
*/
+struct HTAB;
extern bool ResolveCminCmaxDuringDecoding(struct HTAB *tuplecid_data,
Snapshot snapshot,
HeapTuple htup,