pgpool: Fix incorrect routing of SET transaction_read_only = 0.

From: Bo Peng <pengbo(at)sraoss(dot)co(dot)jp>
To: pgpool-committers(at)lists(dot)postgresql(dot)org
Subject: pgpool: Fix incorrect routing of SET transaction_read_only = 0.
Date: 2026-03-31 06:45:25
Message-ID: E1w7Sqq-0048Ai-0k@gothos.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgpool-committers

Fix incorrect routing of SET transaction_read_only = 0.

Fix incorrect routing of SET transaction_read_only = 0 to standby node, which caused query errors.
Also replace incorrect bool ret = POOL_BOTH with the proper enum type.

Reported-by: liujinyang-highgo
Reviewed-by: Bo Peng <pengbo(at)sraoss(dot)co(dot)jp>
Discussion: https://github.com/pgpool/pgpool2/issues/155
Backpatch-through: v4.3

Branch
------
master

Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=3862188187f1b61d732189dc473daea30498c669

Modified Files
--------------
src/context/pool_query_context.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Browse pgpool-committers by date

  From Date Subject
Next Message Bo Peng 2026-03-31 06:46:14 pgpool: Fix incorrect routing of SET transaction_read_only = 0.
Previous Message Tatsuo Ishii 2026-03-25 09:41:14 pgpool: Fix session local relation cache case bug.