From 26993b2918551552b74b559ab410228dc0670cd5 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 30 Aug 2002 22:18:07 +0000 Subject: 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. --- src/backend/tcop/postgres.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/backend/tcop/postgres.c') diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index 6988972e1d6..3947755a2e3 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.286 2002/08/29 23:39:05 inoue Exp $ + * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.287 2002/08/30 22:18:06 tgl Exp $ * * NOTES * this is the "main" module of the postgres backend and @@ -860,7 +860,7 @@ static void start_xact_command(void) { elog(DEBUG1, "StartTransactionCommand"); - StartTransactionCommand(); + StartTransactionCommand(false); } static void @@ -872,7 +872,7 @@ finish_xact_command(void) /* Now commit the command */ elog(DEBUG1, "CommitTransactionCommand"); - CommitTransactionCommand(); + CommitTransactionCommand(false); #ifdef SHOW_MEMORY_STATS /* Print mem stats at each commit for leak tracking */ @@ -1664,7 +1664,7 @@ PostgresMain(int argc, char *argv[], const char *username) if (!IsUnderPostmaster) { puts("\nPOSTGRES backend interactive interface "); - puts("$Revision: 1.286 $ $Date: 2002/08/29 23:39:05 $\n"); + puts("$Revision: 1.287 $ $Date: 2002/08/30 22:18:06 $\n"); } /* -- cgit v1.2.3