Revert "Fix pgpool child process segfault when ALWAYS_MASTER is on."
authorTatsuo Ishii <ishii@postgresql.org>
Mon, 26 Feb 2018 08:01:50 +0000 (17:01 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Mon, 26 Feb 2018 08:01:50 +0000 (17:01 +0900)
commit6b757807196dde66e21a28c09caa4d1d68bed4c2
treee94071f477d5f2e5a665357647e55616690a6e25
parent073465bb25514c814e54317fe7aee87d0168bc50
Revert "Fix pgpool child process segfault when ALWAYS_MASTER is on."

This reverts commit 9022ff842fb5dbbe06e2f2f4cf38fadf47b592da.

With the commit, write queries are always sent to node 0 even if the
primary node is not 0 because PRIMARY_NODE_ID macro returns
REAL_MASTER_NODE_ID, which is usually 0. Thus write queries are failed
with:
ERROR:  cannot execute INSERT in a read-only transaction
src/include/pool.h