mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
AUTOCOMMIT mode is now an available backend GUC variable; setting it
to false provides more SQL-spec-compliant behavior than we had before. I am not sure that setting it false is actually a good idea yet; there is a lot of client-side code that will probably be broken by turning autocommit off. But it's a start. Loosely based on a patch by David Van Wie.
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootparse.y,v 1.50 2002/07/20 05:16:56 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootparse.y,v 1.51 2002/08/30 22:18:05 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -55,7 +55,7 @@
|
||||
static void
|
||||
do_start()
|
||||
{
|
||||
StartTransactionCommand();
|
||||
StartTransactionCommand(true);
|
||||
elog(DEBUG3, "start transaction");
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ do_start()
|
||||
static void
|
||||
do_end()
|
||||
{
|
||||
CommitTransactionCommand();
|
||||
CommitTransactionCommand(true);
|
||||
elog(DEBUG3, "commit transaction");
|
||||
if (isatty(0))
|
||||
{
|
||||
|
Reference in New Issue
Block a user