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 08:39:53 +0000 (17:39 +0900)
commit586b012cb3a263ee835109ab682006dbc6aff105
treeea93fabf5751e6e75683cd9b24eb24fca7642e79
parent2f849b692a3f307bf519fa4fe7faf44b36d58c40
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