diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2017-09-12 19:27:48 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2017-09-12 19:27:48 -0400 |
commit | 69835bc8988812c960f4ed5aeee86b62ac73602a (patch) | |
tree | 396db4b17f3219debd841d3af6e8b1f493357506 /src/backend/executor/functions.c | |
parent | 6e7baa322773ff8c79d4d8883c99fdeff5bfa679 (diff) | |
download | postgresql-69835bc8988812c960f4ed5aeee86b62ac73602a.tar.gz postgresql-69835bc8988812c960f4ed5aeee86b62ac73602a.zip |
Add psql variables to track success/failure of SQL queries.
This patch adds ERROR, SQLSTATE, and ROW_COUNT, which are updated after
every query, as well as LAST_ERROR_MESSAGE and LAST_ERROR_SQLSTATE,
which are updated only when a query fails. The expected usage of these
is for scripting.
Fabien Coelho, reviewed by Pavel Stehule
Discussion: https://postgr.es/m/alpine.DEB.2.20.1704042158020.12290@lancre
Diffstat (limited to 'src/backend/executor/functions.c')
0 files changed, 0 insertions, 0 deletions