pg.ddx.io  pgpool-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tatsuo Ishii <ishii@postgresql.org>
To: pgpool-committers@lists.postgresql.org
Subject: pgpool: Feature: modify pgproto as a test driver.
Date: Fri, 06 Nov 2026 10:59:56 +0000
Message-ID: <E1xPHfo-0000000GDlR-44ld@gothos.postgresql.org> (raw)

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@postgresql.org>
Reviewed-by: Nadav Shatz <nadav@tailorbrands.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=1f40c4fe724d5e704f4da9b72bfc3b182b098...

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(-)



Message-ID: <E1xPHfo-0000000GDlR-44ld@gothos.postgresql.org>
Permalink:  ../E1xPHfo-0000000GDlR-44ld@gothos.postgresql.org/
Also on:    postgresql.org/message-id/E1xPHfo-0000000GDlR-44ld@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: ishii@postgresql.org
  Subject: Re: pgpool: Feature: modify pgproto as a test driver.
  In-Reply-To: <E1xPHfo-0000000GDlR-44ld@gothos.postgresql.org>
  References: <E1xPHfo-0000000GDlR-44ld@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