| From: | Taiki Koshino <koshino(at)sraoss(dot)co(dot)jp> |
|---|---|
| To: | pgpool-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgpool: Fix extended-protocol DISCARD ALL and statement reuse after DIS |
| Date: | 2026-10-21 02:13:18 |
| Message-ID: | E1xJLpO-00000008fba-2IVa@gothos.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgpool-committers |
Fix extended-protocol DISCARD ALL and statement reuse after DISCARD PLANS.
DISCARD ALL cleared the sent message list before CommandComplete()
finished using the current query context, causing a "no query context"
error and closing the frontend connection. Defer cleanup until the
context is no longer needed.
DISCARD PLANS also removed saved Query and Parse messages, although
PostgreSQL preserves prepared statements. Keep these records so that
subsequent Bind messages can reuse the statements without another Parse.
Author: Taiki Koshino(koshino(at)sraoss(dot)co(dot)jp)
Discussion: https://github.com/pgpool/pgpool2/issues/175
Backpatch-through: v4.3
Branch
------
master
Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=3462d5e6ee12ca5fc58d446ecd62b54ac112e55e
Modified Files
--------------
src/protocol/CommandComplete.c | 29 +++++++++++++++--------------
1 file changed, 15 insertions(+), 14 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Taiki Koshino | 2026-10-21 02:14:27 | pgpool: Fix extended-protocol DISCARD ALL and statement reuse after DIS |
| Previous Message | Taiki Koshino | 2026-10-21 01:58:01 | pgpool: Fix SQLSTATE for Bind referencing a nonexistent prepared statem |