Re: log bind parameter values on error
Alvaro Herrera <alvherre@2ndquadrant.com>
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Andres Freund <andres@anarazel.de>, Alexey Bashtanov <bashtanov@imap.cc>, Peter Eisentraut <peter.eisentraut@2ndquadrant.com>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2019-12-06T21:47:26Z
Lists: pgsql-hackers
On 2019-Dec-06, Pavel Stehule wrote: > pá 6. 12. 2019 v 18:57 odesílatel Alvaro Herrera <alvherre@2ndquadrant.com> > napsal: > > (It seems a bit weird that if I assign NULL to :two pgbench stores the > > empty string, instead of the NULL that I get as in the above which is > > what happens when the variable is not defined at all. That's probably a > > bug in \gset ...) > > psql session variables cannot to hold NULL I also just learned that the :foo expansion in pgbench behaves crazily when in normal query mode, particularly re. quotes in variables. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Commits
-
Emit parameter values during query bind/execute errors
- ba79cb5dc841 13.0 landed
-
Add backend-only appendStringInfoStringQuoted
- 6cafde1bd43f 13.0 landed