*
*
* 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
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.
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");
}
/*
*
*
* 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
*/
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