diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-08-30 22:18:07 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-08-30 22:18:07 +0000 |
commit | 26993b2918551552b74b559ab410228dc0670cd5 (patch) | |
tree | fec5ed9634d32bd3720684da549ee2b9ec59916a /src/backend/tcop/postgres.c | |
parent | 549928d99bab650f684fd69dd5ef95553438a957 (diff) | |
download | postgresql-26993b2918551552b74b559ab410228dc0670cd5.tar.gz postgresql-26993b2918551552b74b559ab410228dc0670cd5.zip |
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.
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r-- | src/backend/tcop/postgres.c | 8 |
1 files changed, 4 insertions, 4 deletions
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"); } /* |