diff options
author | Hiroshi Inoue <inoue@tpf.co.jp> | 1999-12-22 00:07:16 +0000 |
---|---|---|
committer | Hiroshi Inoue <inoue@tpf.co.jp> | 1999-12-22 00:07:16 +0000 |
commit | a3e2bc732db60dfbea276d93a356fb844b4c0dc3 (patch) | |
tree | d9556cf3f821ba58094ef868f7109e86a951e682 /src/backend/utils/init/postinit.c | |
parent | 3e991585487ab58b77d24298467a2b170f61b4ed (diff) | |
download | postgresql-a3e2bc732db60dfbea276d93a356fb844b4c0dc3.tar.gz postgresql-a3e2bc732db60dfbea276d93a356fb844b4c0dc3.zip |
to live in a transaction before access to db
during backend startup.
Diffstat (limited to 'src/backend/utils/init/postinit.c')
-rw-r--r-- | src/backend/utils/init/postinit.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/backend/utils/init/postinit.c b/src/backend/utils/init/postinit.c index c5b3f06b8cb..346bdb4b8b8 100644 --- a/src/backend/utils/init/postinit.c +++ b/src/backend/utils/init/postinit.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.53 1999/11/21 01:58:21 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.54 1999/12/22 00:07:16 inoue Exp $ * * NOTES * InitPostgres() is the function called from PostgresMain @@ -546,6 +546,9 @@ InitPostgres(char *name) /* database name */ */ InitCatalogCache(); + /* start a new transaction here before access to db */ + if (!bootstrap) + StartTransactionCommand(); /* * Set ourselves to the proper user id and figure out our postgres * user id. If we ever add security so that we check for valid |