Prevent pcp_recovery_node from recovering "unused" status node.
authorTatsuo Ishii <ishii@postgresql.org>
Wed, 18 Apr 2018 01:03:37 +0000 (10:03 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Wed, 18 Apr 2018 01:42:52 +0000 (10:42 +0900)
commit34253a58eb7da99454a8251ea6a04678082afad1
treeb15735ffdc29c0bcba9d4d599c6079287d04ac92
parent956f8e90902b0fb9c1cfe625eaaa943cda3f78e3
Prevent pcp_recovery_node from recovering "unused" status node.

This allowed to try to recover a node without configuration data,
which leads to variety of problems. See discussion:
https://www.pgpool.net/pipermail/pgpool-general/2018-March/006021.html
for more details.

Also I fixed pgpool_recovery function so that it quotes an empty
string argument with double quotes. Without this, the argument is
treated as if it does not exist, which was the source of the complain
from the user.
src/pcp_con/recovery.c
src/sql/pgpool-recovery/pgpool-recovery.c