repmgrd: check shared library is loaded

If this isn't the case, "repmgrd" will appear to run but not handle
failover correctly.

Address GitHub #337.
This commit is contained in:
Ian Barwick
2017-11-10 14:35:17 +09:00
parent cbc97d84ac
commit 4d6dc57589
4 changed files with 40 additions and 2 deletions

View File

@@ -124,7 +124,6 @@ _PG_init(void)
{
elog(DEBUG1, "repmgr init");
/* error here? */
if (!process_shared_preload_libraries_in_progress)
return;