pg.ddx.io  pgpool-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Taiki Koshino <koshino@sraoss.co.jp>
To: pgpool-committers@lists.postgresql.org
Subject: pgpool: Fix SQLSTATE for Bind referencing a nonexistent prepared statem
Date: Wed, 21 Oct 2026 01:57:29 +0000
Message-ID: <E1xJLa4-00000008aQE-3xmD@gothos.postgresql.org> (raw)

Fix SQLSTATE for Bind referencing a nonexistent prepared statement.

When Bind referenced a nonexistent prepared statement, Pgpool-II returned
SQLSTATE XX000 (internal_error), whereas PostgreSQL returned 26000
(invalid_sql_statement_name). The error messages were the same, but the
SQLSTATE values were inconsistent.

Change the SQLSTATE to 26000 to match PostgreSQL. The error message and
connection recovery behavior remain unchanged.

Author: Taiki Koshino koshino@sraoss.co.jp
Discussion: https://github.com/pgpool/pgpool2/issues/180
Backpatch-through: v4.3

Branch
------
V4_5_STABLE

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

Modified Files
--------------
src/protocol/pool_proto_modules.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)



view thread (6+ messages)  latest in thread

Message-ID: <E1xJLa4-00000008aQE-3xmD@gothos.postgresql.org>
Permalink:  ../E1xJLa4-00000008aQE-3xmD@gothos.postgresql.org/
Also on:    postgresql.org/message-id/E1xJLa4-00000008aQE-3xmD@gothos.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgpool-committers@postgresql.org
  Cc: koshino@sraoss.co.jp
  Subject: Re: pgpool: Fix SQLSTATE for Bind referencing a nonexistent prepared statem
  In-Reply-To: <E1xJLa4-00000008aQE-3xmD@gothos.postgresql.org>
  References: <E1xJLa4-00000008aQE-3xmD@gothos.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox