Skip to content

Commit 3b3d8f1

Browse files
committed
Do the shared_preload_libraries check before defining GUCs
Fixes #54
1 parent 0c0c7a8 commit 3b3d8f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pglogical.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,9 @@ _PG_init(void)
396396
{
397397
BackgroundWorker bgw;
398398

399+
if (!process_shared_preload_libraries_in_progress)
400+
elog(ERROR, "pglogical is not in shared_preload_libraries");
401+
399402
DefineCustomEnumVariable("pglogical.conflict_resolution",
400403
gettext_noop("Sets method used for conflict resolution for resolvable conflicts."),
401404
NULL,
@@ -417,9 +420,6 @@ _PG_init(void)
417420
if (IsBinaryUpgrade)
418421
return;
419422

420-
if (!process_shared_preload_libraries_in_progress)
421-
elog(ERROR, "pglogical is not in shared_preload_libraries");
422-
423423
/* Init workers. */
424424
pglogical_worker_shmem_init();
425425

0 commit comments

Comments
 (0)