Fix DROP DATABASE failure.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Tue, 16 Apr 2019 06:48:44 +0000 (15:48 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Tue, 16 Apr 2019 06:48:44 +0000 (15:48 +0900)
commit717a2c87f3e6b798a75b683aaa684e65f41a4960
tree4665df1ff06b8072a698b123988e776b377f22e8
parenta935a7df06a2d1f4730fe72af1a3875d8013e63a
Fix DROP DATABASE failure.

When DROP DATABASE gets executed, SIGUSR1 is sent to the Pgpool-II
child process being issuing the command. In its SIGUSR1 handler,
MASTER macro is called while closing all idle connections. The MACRO
checks whether we are in failover process surely we are. As a result,
the process exits and DROP DATABASE command never been issued.

Per bug 486. However the reason of segfault in the report is not
clear.  After commit:
https://git.postgresql.org/gitweb/?p=pgpool2.git;a=commit;h=66b5aacfcc045ec1485921a5884b637fcfb6fd73

Things could be different. Let the user test the latest version in the
git repo and see if the problem is solved...
src/include/pool.h
src/protocol/child.c
src/protocol/pool_proto_modules.c