pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Improve PQtrace() output format
Date: Tue, 30 Mar 2021 23:17:29 +0000
Message-ID: <E1lRNc1-0004Bd-RW@gemulon.postgresql.org> (raw)

Improve PQtrace() output format

Transform the PQtrace output format from its ancient (and mostly
useless) byte-level output format to a logical-message-level output,
making it much more usable.  This implementation allows the printing
code to be written (as it indeed was) by looking at the protocol
documentation, which gives more confidence that the three (docs, trace
code and actual code) actually match.

Author: 岩田 彩 (Aya Iwata) <iwata.aya@fujitsu.com>
Reviewed-by: 綱川 貴之 (Takayuki Tsunakawa) <tsunakawa.takay@fujitsu.com>
Reviewed-by: Kirk Jamison <k.jamison@fujitsu.com>
Reviewed-by: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: 黒田 隼人 (Hayato Kuroda) <kuroda.hayato@fujitsu.com>
Reviewed-by: "Nagaura, Ryohei" <nagaura.ryohei@jp.fujitsu.com>
Reviewed-by: Ryo Matsumura <matsumura.ryo@fujitsu.com>
Reviewed-by: Greg Nancarrow <gregn4422@gmail.com>
Reviewed-by: Jim Doty <jdoty@pivotal.io>
Reviewed-by: Álvaro Herrera <alvherre@alvh.no-ip.org>
Discussion: https://postgr.es/m/71E660EB361DF14299875B198D4CE5423DE3FBA4@g01jpexmbkw25

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/198b3716dba68544b55cb97bd120738a86d5df2d

Modified Files
--------------
doc/src/sgml/libpq.sgml             |  42 ++-
src/interfaces/libpq/Makefile       |   1 +
src/interfaces/libpq/exports.txt    |   1 +
src/interfaces/libpq/fe-connect.c   |  21 --
src/interfaces/libpq/fe-exec.c      |   4 -
src/interfaces/libpq/fe-misc.c      |  66 +---
src/interfaces/libpq/fe-protocol3.c |  13 +
src/interfaces/libpq/fe-trace.c     | 714 ++++++++++++++++++++++++++++++++++++
src/interfaces/libpq/libpq-fe.h     |  17 +-
src/interfaces/libpq/libpq-int.h    |   7 +
10 files changed, 804 insertions(+), 82 deletions(-)



view thread (5+ messages)  latest in thread

Message-ID: <E1lRNc1-0004Bd-RW@gemulon.postgresql.org>
Permalink:  ../E1lRNc1-0004Bd-RW@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lRNc1-0004Bd-RW@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 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: pgsql-committers@postgresql.org
  Cc: alvherre@alvh.no-ip.org
  Subject: Re: pgsql: Improve PQtrace() output format
  In-Reply-To: <E1lRNc1-0004Bd-RW@gemulon.postgresql.org>
  References: <E1lRNc1-0004Bd-RW@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