aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorHiroshi Inoue <inoue@tpf.co.jp>1999-12-22 00:07:16 +0000
committerHiroshi Inoue <inoue@tpf.co.jp>1999-12-22 00:07:16 +0000
commita3e2bc732db60dfbea276d93a356fb844b4c0dc3 (patch)
treed9556cf3f821ba58094ef868f7109e86a951e682 /src/backend/tcop/postgres.c
parent3e991585487ab58b77d24298467a2b170f61b4ed (diff)
downloadpostgresql-a3e2bc732db60dfbea276d93a356fb844b4c0dc3.tar.gz
postgresql-a3e2bc732db60dfbea276d93a356fb844b4c0dc3.zip
to live in a transaction before access to db
during backend startup.
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r--src/backend/tcop/postgres.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c
index 619a9d9ba14..4764d32cdc3 100644
--- a/src/backend/tcop/postgres.c
+++ b/src/backend/tcop/postgres.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.137 1999/11/16 06:13:35 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.138 1999/12/22 00:07:15 inoue Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
@@ -1474,7 +1474,11 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
on_shmem_exit(remove_all_temp_relations, NULL);
- parser_input = makeStringInfo(); /* initialize input buffer */
+ {
+ MemoryContext oldcontext = MemoryContextSwitchTo(TopMemoryContext);
+ parser_input = makeStringInfo(); /* initialize input buffer */
+ MemoryContextSwitchTo(oldcontext);
+ }
/*
* Send this backend's cancellation info to the frontend.
@@ -1495,7 +1499,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
if (!IsUnderPostmaster)
{
puts("\nPOSTGRES backend interactive interface ");
- puts("$Revision: 1.137 $ $Date: 1999/11/16 06:13:35 $\n");
+ puts("$Revision: 1.138 $ $Date: 1999/12/22 00:07:15 $\n");
}
/*