]> granicus.if.org Git - postgresql/commitdiff
Add opaque declaration of HTAB to tqual.h.
authorKevin Grittner <kgrittn@postgresql.org>
Sat, 27 Jun 2015 14:55:06 +0000 (09:55 -0500)
committerKevin Grittner <kgrittn@postgresql.org>
Sat, 27 Jun 2015 14:55:06 +0000 (09:55 -0500)
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.

src/include/utils/tqual.h

index ee8345e409774accc662d2e3f7300ed6a34d32fe..267d956501117003e9dc1d89a0464c1f89b5ffbe 100644 (file)
@@ -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,