[Groonga-commit] pgroonga/pgroonga at e2d2ebb [master] Support PGroonga index detection on PostgreSQL < 9.6

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Jul 19 10:24:42 JST 2017


Kouhei Sutou	2017-07-19 10:24:42 +0900 (Wed, 19 Jul 2017)

  New Revision: e2d2ebb3afa93d36385c06a7a27d3e49f6c62636
  https://github.com/pgroonga/pgroonga/commit/e2d2ebb3afa93d36385c06a7a27d3e49f6c62636

  Message:
    Support PGroonga index detection on PostgreSQL < 9.6

  Modified files:
    src/pgroonga.c

  Modified: src/pgroonga.c (+2 -2)
===================================================================
--- src/pgroonga.c    2017-07-19 10:19:48 +0900 (83b1382)
+++ src/pgroonga.c    2017-07-19 10:24:42 +0900 (437806d)
@@ -5074,12 +5074,12 @@ pgroonga_handler(PG_FUNCTION_ARGS)
 bool
 PGrnIndexIsPGroonga(Relation index)
 {
-	return index->rd_amroutine->ambuild == pgroonga_build_raw;
+	return index->rd_amroutine->aminsert == pgroonga_insert_raw;
 }
 #else
 bool
 PGrnIndexIsPGroonga(Relation index)
 {
-	return false;
+	return index->rd_aminfo->aminsert.fn_addr == pgroonga_insert;
 }
 #endif
-------------- next part --------------
HTML����������������������������...
Télécharger 



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