agora inbox for pgpool-committers@postgresql.org  
help / color / mirror / Atom feed
pgpool: Prevent FATAL error when non-existing prepared statement is giv
6+ messages / 1 participants
[nested] [flat]

* pgpool: Prevent FATAL error when non-existing prepared statement is giv
@ 2025-10-03 01:29 Tatsuo Ishii <ishii@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Tatsuo Ishii @ 2025-10-03 01:29 UTC (permalink / raw)
  To: pgpool-committers@lists.postgresql.org

Prevent FATAL error when non-existing prepared statement is given.

Previously Bind() raised FATAL error if non-existing prepared statement was given.
This is different from PostgreSQL's behavior.

\bind_named stmt2 'baz' \g
ERROR:  prepared statement "stmt2" does not exist

This commit let Bind() check the existence of prepared statement and
if it does not exist, send an ERROR message to frontend. Note that no
log is left in the log file. This is not preferred action but currently
it's not possible to leave log.

Backpatch-through: v4.2

Branch
------
V4_2_STABLE

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

Modified Files
--------------
src/protocol/pool_proto_modules.c | 23 ++++++++++++++++++++---
1 file changed, 20 insertions(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgpool: Prevent FATAL error when non-existing prepared statement is giv
@ 2025-10-03 01:29 Tatsuo Ishii <ishii@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Tatsuo Ishii @ 2025-10-03 01:29 UTC (permalink / raw)
  To: pgpool-committers@lists.postgresql.org

Prevent FATAL error when non-existing prepared statement is given.

Previously Bind() raised FATAL error if non-existing prepared statement was given.
This is different from PostgreSQL's behavior.

\bind_named stmt2 'baz' \g
ERROR:  prepared statement "stmt2" does not exist

This commit let Bind() check the existence of prepared statement and
if it does not exist, send an ERROR message to frontend. Note that no
log is left in the log file. This is not preferred action but currently
it's not possible to leave log.

Backpatch-through: v4.2

Branch
------
V4_3_STABLE

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

Modified Files
--------------
src/protocol/pool_proto_modules.c | 23 ++++++++++++++++++++---
1 file changed, 20 insertions(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgpool: Prevent FATAL error when non-existing prepared statement is giv
@ 2025-10-03 01:29 Tatsuo Ishii <ishii@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Tatsuo Ishii @ 2025-10-03 01:29 UTC (permalink / raw)
  To: pgpool-committers@lists.postgresql.org

Prevent FATAL error when non-existing prepared statement is given.

Previously Bind() raised FATAL error if non-existing prepared statement was given.
This is different from PostgreSQL's behavior.

\bind_named stmt2 'baz' \g
ERROR:  prepared statement "stmt2" does not exist

This commit let Bind() check the existence of prepared statement and
if it does not exist, send an ERROR message to frontend. Note that no
log is left in the log file. This is not preferred action but currently
it's not possible to leave log.

Backpatch-through: v4.2

Branch
------
V4_4_STABLE

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

Modified Files
--------------
src/protocol/pool_proto_modules.c | 23 ++++++++++++++++++++---
1 file changed, 20 insertions(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgpool: Prevent FATAL error when non-existing prepared statement is giv
@ 2025-10-03 01:29 Tatsuo Ishii <ishii@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Tatsuo Ishii @ 2025-10-03 01:29 UTC (permalink / raw)
  To: pgpool-committers@lists.postgresql.org

Prevent FATAL error when non-existing prepared statement is given.

Previously Bind() raised FATAL error if non-existing prepared statement was given.
This is different from PostgreSQL's behavior.

\bind_named stmt2 'baz' \g
ERROR:  prepared statement "stmt2" does not exist

This commit let Bind() check the existence of prepared statement and
if it does not exist, send an ERROR message to frontend. Note that no
log is left in the log file. This is not preferred action but currently
it's not possible to leave log.

Backpatch-through: v4.2

Branch
------
V4_5_STABLE

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

Modified Files
--------------
src/protocol/pool_proto_modules.c | 23 ++++++++++++++++++++---
1 file changed, 20 insertions(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgpool: Prevent FATAL error when non-existing prepared statement is giv
@ 2025-10-03 01:29 Tatsuo Ishii <ishii@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Tatsuo Ishii @ 2025-10-03 01:29 UTC (permalink / raw)
  To: pgpool-committers@lists.postgresql.org

Prevent FATAL error when non-existing prepared statement is given.

Previously Bind() raised FATAL error if non-existing prepared statement was given.
This is different from PostgreSQL's behavior.

\bind_named stmt2 'baz' \g
ERROR:  prepared statement "stmt2" does not exist

This commit let Bind() check the existence of prepared statement and
if it does not exist, send an ERROR message to frontend. Note that no
log is left in the log file. This is not preferred action but currently
it's not possible to leave log.

Backpatch-through: v4.2

Branch
------
V4_6_STABLE

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

Modified Files
--------------
src/protocol/pool_proto_modules.c | 23 ++++++++++++++++++++---
1 file changed, 20 insertions(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgpool: Prevent FATAL error when non-existing prepared statement is giv
@ 2025-10-03 01:29 Tatsuo Ishii <ishii@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Tatsuo Ishii @ 2025-10-03 01:29 UTC (permalink / raw)
  To: pgpool-committers@lists.postgresql.org

Prevent FATAL error when non-existing prepared statement is given.

Previously Bind() raised FATAL error if non-existing prepared statement was given.
This is different from PostgreSQL's behavior.

\bind_named stmt2 'baz' \g
ERROR:  prepared statement "stmt2" does not exist

This commit let Bind() check the existence of prepared statement and
if it does not exist, send an ERROR message to frontend. Note that no
log is left in the log file. This is not preferred action but currently
it's not possible to leave log.

Backpatch-through: v4.2

Branch
------
master

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

Modified Files
--------------
src/protocol/pool_proto_modules.c | 23 ++++++++++++++++++++---
1 file changed, 20 insertions(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2025-10-03 01:29 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-10-03 01:29 pgpool: Prevent FATAL error when non-existing prepared statement is giv Tatsuo Ishii <ishii@postgresql.org>
2025-10-03 01:29 pgpool: Prevent FATAL error when non-existing prepared statement is giv Tatsuo Ishii <ishii@postgresql.org>
2025-10-03 01:29 pgpool: Prevent FATAL error when non-existing prepared statement is giv Tatsuo Ishii <ishii@postgresql.org>
2025-10-03 01:29 pgpool: Prevent FATAL error when non-existing prepared statement is giv Tatsuo Ishii <ishii@postgresql.org>
2025-10-03 01:29 pgpool: Prevent FATAL error when non-existing prepared statement is giv Tatsuo Ishii <ishii@postgresql.org>
2025-10-03 01:29 pgpool: Prevent FATAL error when non-existing prepared statement is giv Tatsuo Ishii <ishii@postgresql.org>

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