1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-08 11:42:09 +03:00

Fix some shortcomings in psql's autocommit-off mode concerning detection

of commands for which a transaction block should not be forced.  Recognize
VACUUM and other PreventTransactionChain commands; handle nested /* .. */
comments correctly; handle multibyte encodings correctly.
Michael Paesold with some kibitzing from Tom Lane.
This commit is contained in:
Tom Lane
2004-09-20 18:51:19 +00:00
parent 9332d0baba
commit 5b564e5307
2 changed files with 126 additions and 43 deletions

View File

@ -1,5 +1,5 @@
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.121 2004/08/24 00:06:51 neilc Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.122 2004/09/20 18:51:17 tgl Exp $
PostgreSQL documentation
-->
@ -1875,7 +1875,8 @@ bar
mode works by issuing an implicit <command>BEGIN</> for you, just
before any command that is not already in a transaction block and
is not itself a <command>BEGIN</> or other transaction-control
command.
command, nor a command that cannot be executed inside a transaction
block (such as <command>VACUUM</>).
</para>
<note>