• R/O
  • HTTP
  • SSH
  • HTTPS

pg_bigm: Commit

This is the main pg_bigm git repository.


Commit MetaInfo

Revision53e844de04a8d272216fa3e9091677342e994ee0 (tree)
Time2019-04-08 17:52:32
AuthorMasaoFujii <masao.fujii@gmai...>
CommiterMasaoFujii

Log Message

Update pg_bigm so that it can work with PostgreSQL 12dev.

In PostgreSQL 12dev, commit 4b21acf522 moved the declarations of
relation_open() and relation_close into access/relation.h.
Also commit 578b229718 changed the interface of CreateTemplateTupleDesc().
These changes made pg_bigm fail to be compiled on 12dev.

Change Summary

Incremental Difference

--- a/bigm_gin.c
+++ b/bigm_gin.c
@@ -17,6 +17,9 @@
1717 #include "access/gin.h"
1818 #include "access/gin_private.h"
1919 #include "access/itup.h"
20+#if PG_VERSION_NUM >= 120000
21+#include "access/relation.h"
22+#endif
2023 #include "access/skey.h"
2124 #include "access/tuptoaster.h"
2225 #include "access/xlog.h"
@@ -417,7 +420,11 @@ pg_gin_pending_stats(PG_FUNCTION_ARGS)
417420 * Construct a tuple descriptor for the result row. This must match this
418421 * function's pg_bigm--x.x.sql entry.
419422 */
423+ #if PG_VERSION_NUM >= 120000
424+ tupdesc = CreateTemplateTupleDesc(2);
425+#else
420426 tupdesc = CreateTemplateTupleDesc(2, false);
427+#endif
421428 TupleDescInitEntry(tupdesc, (AttrNumber) 1,
422429 "pages", INT4OID, -1, 0);
423430 TupleDescInitEntry(tupdesc, (AttrNumber) 2,
Show on old repository browser