| From: | Tatsuo Ishii <ishii(at)postgresql(dot)org> |
|---|---|
| To: | pgpool-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgpool: Feature: modify pgproto as a test driver. |
| Date: | 2026-11-06 10:59:56 |
| Message-ID: | E1xPHfo-0000000GDlR-44ld@gothos.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgpool-committers |
Feature: modify pgproto as a test driver.
This commit adds new option "-t" ("--test-v2" for long option), which
sends a v2 protocol startup packet and read reply, then exit. This is
used to test Pgpool-II to see if they reject a v2 protocol connection
request as expected.
Add 045.remove_proto_v2 regression test to check v2 protocol is
rejected.
Author: Tatsuo Ishii <ishii(at)postgresql(dot)org>
Reviewed-by: Nadav Shatz <nadav(at)tailorbrands(dot)com>
Discussion: https://www.postgresql.org/message-id/20260625.151428.1666276852188903568.ishii%40postgresql.org
Backpatch-through: master only
Branch
------
master
Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=1f40c4fe724d5e704f4da9b72bfc3b182b098855
Modified Files
--------------
doc.ja/src/sgml/ref/pgproto.sgml | 11 +
doc/src/sgml/ref/pgproto.sgml | 12 +
src/include/pgproto/pgproto.h | 3 +-
src/include/pgproto/read.h | 7 +-
src/include/pgproto/send.h | 4 +-
.../tests/045.remove_proto_v2/expected.txt | 2 +
.../regression/tests/045.remove_proto_v2/test.sh | 39 +++
src/tools/pgproto/main.c | 269 ++++++++++++++++++++-
src/tools/pgproto/read.c | 26 +-
src/tools/pgproto/send.c | 16 +-
10 files changed, 366 insertions(+), 23 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tatsuo Ishii | 2026-11-09 01:47:05 | pgpool: Fix to use snprintf() instead of strlcpy() in pgproto. |
| Previous Message | Taiki Koshino | 2026-11-06 06:34:00 | pgpool: Feature: Import PostgreSQL 19 parser. |