Skip to content

Commit

Permalink
Disable PGroonga in background worker
Browse files Browse the repository at this point in the history
GitHub: fix #17

Reported by svsool. Thanks!!!
  • Loading branch information
kou committed Aug 12, 2016
1 parent 3051337 commit 485c2a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pgroonga.c
Expand Up @@ -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>
Expand Down Expand Up @@ -355,6 +356,9 @@ PGrnInitializePrefixRKSequentialSearchData(void)
void
_PG_init(void)
{
if (MyBgworkerEntry)
return;

if (PGrnInitialized)
ereport(ERROR,
(errcode(ERRCODE_SYSTEM_ERROR),
Expand Down

0 comments on commit 485c2a1

Please sign in to comment.