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/utils/init/postinit.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/utils/init/postinit.c')
-rw-r--r-- | src/backend/utils/init/postinit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/utils/init/postinit.c b/src/backend/utils/init/postinit.c index b02e371a818..82f4f632e58 100644 --- a/src/backend/utils/init/postinit.c +++ b/src/backend/utils/init/postinit.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.111 2002/08/29 21:02:12 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.112 2002/08/30 22:18:06 tgl Exp $ * * *------------------------------------------------------------------------- @@ -330,7 +330,7 @@ InitPostgres(const char *dbname, const char *username) /* start a new transaction here before access to db */ if (!bootstrap) - StartTransactionCommand(); + StartTransactionCommand(true); /* * It's now possible to do real access to the system catalogs. @@ -394,7 +394,7 @@ InitPostgres(const char *dbname, const char *username) /* close the transaction we started above */ if (!bootstrap) - CommitTransactionCommand(); + CommitTransactionCommand(true); /* * Check a normal user hasn't connected to a superuser reserved slot. |