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: Emit parameter values during query bind/execute errors
Date: Wed, 11 Dec 2019 21:07:13 +0000
Message-ID: <E1if9CT-0001Wg-LF@gemulon.postgresql.org> (raw)

Emit parameter values during query bind/execute errors

This makes such log entries more useful, since the cause of the error
can be dependent on the parameter values.

Author: Alexey Bashtanov, Álvaro Herrera
Discussion: https://postgr.es/m/0146a67b-a22a-0519-9082-bc29756b93a2@imap.cc
Reviewed-by: Peter Eisentraut, Andres Freund, Tom Lane

Branch
------
master

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

Modified Files
--------------
doc/src/sgml/config.sgml                      |  23 +++++
src/backend/nodes/params.c                    | 110 ++++++++++++++++++++++++
src/backend/tcop/postgres.c                   | 119 ++++++++++++++++----------
src/backend/utils/misc/guc.c                  |  10 +++
src/backend/utils/misc/postgresql.conf.sample |   1 +
src/bin/pgbench/t/001_pgbench_with_server.pl  |  44 ++++++++++
src/include/nodes/params.h                    |  10 +++
src/include/utils/guc.h                       |   1 +
8 files changed, 271 insertions(+), 47 deletions(-)



view thread (6+ messages)  latest in thread

Message-ID: <E1if9CT-0001Wg-LF@gemulon.postgresql.org>
Permalink:  ../E1if9CT-0001Wg-LF@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1if9CT-0001Wg-LF@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: alvherre@alvh.no-ip.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Emit parameter values during query bind/execute errors
  In-Reply-To: <E1if9CT-0001Wg-LF@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