mirror of
https://github.com/postgres/postgres.git
synced 2025-06-11 20:28:21 +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:
@ -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");
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user