Improve logging of bad parameter values in BIND messages.

Since commit ba79cb5dc, values of bind parameters have been logged
during errors in extended query mode.  However, we only did that after
we'd collected and converted all the parameter values, thus failing to
offer any useful localization of invalid-parameter problems.  Add a
separate callback that's used during parameter collection, and have it
print the parameter number, along with the input string if text input
format is used.

Justin Pryzby and Tom Lane

Discussion: https://postgr.es/m/[email protected]
Discussion: 
https://postgr.es/m/canfkh5k-6nnt-4csv1vpb80nq2bzczhfvr5o4vznybsx0wz...@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1ea396362be1615e926ea69d666c770081a0d3ef

Modified Files
--------------
src/backend/tcop/postgres.c                  | 94 +++++++++++++++++++++++++++-
src/bin/pgbench/t/001_pgbench_with_server.pl | 16 +++++
2 files changed, 107 insertions(+), 3 deletions(-)

Reply via email to