| 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:16:15 |
| Message-ID: | E1xJLsE-00000008gM9-41TR@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
------
V4_5_STABLE
Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=a4217268bd0c3567c1002b60fdbf7d1537844f1a
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:16:43 | pgpool: Fix extended-protocol DISCARD ALL and statement reuse after DIS |
| Previous Message | Taiki Koshino | 2026-10-21 02:15:24 | pgpool: Fix extended-protocol DISCARD ALL and statement reuse after DIS |