[Groonga-commit] pgroonga/pgroonga at 6cdeef4 [master] Make buildable with PostgreSQL 9.3 again

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Feb 9 17:29:55 JST 2016


Kouhei Sutou	2016-02-09 17:29:55 +0900 (Tue, 09 Feb 2016)

  New Revision: 6cdeef4baffdaf515caa859e0bf9e607302bbed1
  https://github.com/pgroonga/pgroonga/commit/6cdeef4baffdaf515caa859e0bf9e607302bbed1

  Message:
    Make buildable with PostgreSQL 9.3 again
    
    But unused indexes remove feature isn't supported.

  Modified files:
    src/pgrn_compatible.h
    src/pgroonga.c

  Modified: src/pgrn_compatible.h (+3 -0)
===================================================================
--- src/pgrn_compatible.h    2016-02-09 17:11:33 +0900 (b983b5f)
+++ src/pgrn_compatible.h    2016-02-09 17:29:55 +0900 (374f954)
@@ -11,6 +11,9 @@
 #	define PGRN_SUPPORT_RECHECK_PER_SCAN
 #	define PGRN_SUPPORT_INDEX_ONLY_SCAN
 #	define PGRN_SUPPORT_BITMAP_INDEX
+#	if PG_VERSION_NUM >= 90400
+#		define PGRN_SUPPORT_FILE_NODE_ID_TO_RELATION_ID
+#	endif
 #endif
 
 #ifndef ERRCODE_SYSTEM_ERROR

  Modified: src/pgroonga.c (+6 -1)
===================================================================
--- src/pgroonga.c    2016-02-09 17:11:33 +0900 (6b9757e)
+++ src/pgroonga.c    2016-02-09 17:29:55 +0900 (67d19a1)
@@ -26,7 +26,6 @@
 #include <utils/array.h>
 #include <utils/builtins.h>
 #include <utils/lsyscache.h>
-#include <utils/relfilenodemap.h>
 #include <utils/selfuncs.h>
 #include <utils/syscache.h>
 #include <utils/timestamp.h>
@@ -38,6 +37,10 @@
 #	include <utils/snapmgr.h>
 #endif
 
+#ifdef PGRN_SUPPORT_FILE_NODE_ID_TO_RELATION_ID
+#	include <utils/relfilenodemap.h>
+#endif
+
 #include <groonga.h>
 
 #include <stdlib.h>
@@ -3173,6 +3176,7 @@ pgroonga_bulkdelete(PG_FUNCTION_ARGS)
 static void
 PGrnRemoveUnusedTables(void)
 {
+#ifdef PGRN_SUPPORT_FILE_NODE_ID_TO_RELATION_ID
 	grn_table_cursor *cursor;
 	const char *min = PGrnSourcesTableNamePrefix;
 
@@ -3229,6 +3233,7 @@ PGrnRemoveUnusedTables(void)
 		PGrnJSONBRemoveUnusedTables(relationFileNodeID);
 	}
 	grn_table_cursor_close(ctx, cursor);
+#endif
 }
 
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index