aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2001-05-28 19:33:24 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2001-05-28 19:33:24 +0000
commita056f14be0a22834b5fa7b90c0c5ea1ec42f2a29 (patch)
tree02b4bf346284376f2973714070aa6cae9b52291a /doc/src
parent505d9037cd097041e482ab69e8074c17270c9bb5 (diff)
downloadpostgresql-a056f14be0a22834b5fa7b90c0c5ea1ec42f2a29.tar.gz
postgresql-a056f14be0a22834b5fa7b90c0c5ea1ec42f2a29.zip
Cause plpgsql's PERFORM to behave according to its documentation,
which says that PERFORM will execute any SELECT query and discard the result. The former implementation would in fact raise an error if the result contained more than one row or more than one column. Also, change plpgsql's error-logging mechanism to emit the additional messages about error location at NOTICE rather than DEBUG level. This allows them to be seen by the client without having to dig into the postmaster log file (which may be nonexistent or inaccessible by the client).
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/plsql.sgml7
1 files changed, 2 insertions, 5 deletions
diff --git a/doc/src/sgml/plsql.sgml b/doc/src/sgml/plsql.sgml
index b06ae4bc134..4e6ea830862 100644
--- a/doc/src/sgml/plsql.sgml
+++ b/doc/src/sgml/plsql.sgml
@@ -1,5 +1,5 @@
<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/Attic/plsql.sgml,v 2.34 2001/05/28 14:58:58 petere Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/Attic/plsql.sgml,v 2.35 2001/05/28 19:33:24 tgl Exp $
-->
<chapter id="plpgsql">
@@ -1402,15 +1402,12 @@ RAISE EXCEPTION ''Inexistent ID --> %'',user_id;
error, parse error). And it is possible that the database backend
is in an inconsistent state at this point so returning to the upper
executor or issuing more commands might corrupt the whole database.
- And even if, at this point the information, that the transaction
- is aborted, is already sent to the client application, so resuming
- operation does not make any sense.
</para>
<para>
Thus, the only thing PL/pgSQL currently does when it encounters
an abort during execution of a function or trigger
- procedure is to write some additional DEBUG level log messages
+ procedure is to write some additional NOTICE level log messages
telling in which function and where (line number and type of
statement) this happened.
</para>