Kouhei Sutou
null+****@clear*****
Fri Aug 12 23:58:47 JST 2016
Kouhei Sutou 2016-08-12 23:58:47 +0900 (Fri, 12 Aug 2016) New Revision: 485c2a145f8b981b24b5285716342d397dd9b76a https://github.com/pgroonga/pgroonga/commit/485c2a145f8b981b24b5285716342d397dd9b76a Message: Disable PGroonga in background worker GitHub: fix #17 Reported by svsool. Thanks!!! Modified files: src/pgroonga.c Modified: src/pgroonga.c (+4 -0) =================================================================== --- src/pgroonga.c 2016-06-10 23:37:06 +0900 (2197586) +++ src/pgroonga.c 2016-08-12 23:58:47 +0900 (77fa517) @@ -34,6 +34,7 @@ #include <miscadmin.h> #include <optimizer/clauses.h> #include <optimizer/cost.h> +#include <postmaster/bgworker.h> #include <storage/bufmgr.h> #include <storage/ipc.h> #include <storage/lmgr.h> @@ -355,6 +356,9 @@ PGrnInitializePrefixRKSequentialSearchData(void) void _PG_init(void) { + if (MyBgworkerEntry) + return; + if (PGrnInitialized) ereport(ERROR, (errcode(ERRCODE_SYSTEM_ERROR), -------------- next part -------------- HTML����������������������������...Download