pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nathan Bossart <nathan@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Introduce macros for protocol characters.
Date: Wed, 23 Aug 2023 02:18:14 +0000
Message-ID: <E1qYdRm-000PUl-Df@gemulon.postgresql.org> (raw)

Introduce macros for protocol characters.

This commit introduces descriptively-named macros for the
identifiers used in wire protocol messages.  These new macros are
placed in a new header file so that they can be easily used by
third-party code.

Author: Dave Cramer
Reviewed-by: Alvaro Herrera, Tatsuo Ishii, Peter Smith, Robert Haas, Tom Lane, Peter Eisentraut, Michael Paquier
Discussion: https://postgr.es/m/CADK3HHKbBmK-PKf1bPNFoMC%2BoBt%2BpD9PH8h5nvmBQskEHm-Ehw%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f4b54e1ed9853ab9aff524494866823f951b1e7f

Modified Files
--------------
src/backend/access/common/printsimple.c |  5 +-
src/backend/access/transam/parallel.c   | 14 +++---
src/backend/backup/basebackup_copy.c    | 16 +++----
src/backend/commands/async.c            |  2 +-
src/backend/commands/copyfromparse.c    | 22 ++++-----
src/backend/commands/copyto.c           |  6 +--
src/backend/libpq/auth-sasl.c           |  2 +-
src/backend/libpq/auth.c                |  8 ++--
src/backend/postmaster/postmaster.c     |  2 +-
src/backend/replication/walsender.c     | 18 +++----
src/backend/tcop/dest.c                 |  8 ++--
src/backend/tcop/fastpath.c             |  2 +-
src/backend/tcop/postgres.c             | 68 +++++++++++++-------------
src/backend/utils/error/elog.c          |  5 +-
src/backend/utils/misc/guc.c            |  2 +-
src/include/Makefile                    |  3 +-
src/include/libpq/pqcomm.h              | 23 +++------
src/include/libpq/protocol.h            | 85 +++++++++++++++++++++++++++++++++
src/include/meson.build                 |  1 +
src/interfaces/libpq/fe-auth.c          |  2 +-
src/interfaces/libpq/fe-connect.c       | 19 +++++---
src/interfaces/libpq/fe-exec.c          | 54 ++++++++++-----------
src/interfaces/libpq/fe-protocol3.c     | 70 ++++++++++++++-------------
src/interfaces/libpq/fe-trace.c         | 70 +++++++++++++++------------
src/tools/msvc/Install.pm               |  2 +
25 files changed, 305 insertions(+), 204 deletions(-)



Message-ID: <E1qYdRm-000PUl-Df@gemulon.postgresql.org>
Permalink:  ../E1qYdRm-000PUl-Df@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1qYdRm-000PUl-Df@gemulon.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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: nathan@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Introduce macros for protocol characters.
  In-Reply-To: <E1qYdRm-000PUl-Df@gemulon.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