* Let's clean up ourselves as the postmaster child
*/
- on_exit_reset(); /* we don't want the postmaster's
- * proc_exit() handlers */
+ /* We don't want the postmaster's proc_exit() handlers */
+ on_exit_reset();
/* ----------------
* register signal handlers.
puts("\treset_client_encoding() done.");
#endif
- /* ----------------
- * if stable main memory is assumed (-S(old) flag is set), it is necessary
- * to flush all dirty shared buffers before exit
- * plai 8/7/90
- * this used to be done further down, causing an additional entry in
- * the shmem exit list for every error :-( ... tgl 10/1/98
- * ----------------
- */
- if (!TransactionFlushEnabled())
- on_shmem_exit(FlushBufferPool, NULL);
-
on_shmem_exit(remove_all_temp_relations, NULL);
/* ----------------
if (!IsUnderPostmaster)
{
puts("\nPOSTGRES backend interactive interface ");
- puts("$Revision: 1.118 $ $Date: 1999/05/29 10:25:30 $\n");
+ puts("$Revision: 1.119 $ $Date: 1999/07/02 18:09:27 $\n");
}
/* ----------------
#include "nodes/pg_list.h"
#include "utils/mcxt.h"
#include "utils/temprel.h"
+#include "access/xact.h"
#include "access/htup.h"
#include "access/heapam.h"
#include "catalog/heap.h"
List *l,
*next;
+ StartTransactionCommand();
+
l = temp_rels;
while (l != NIL)
{
l = next;
}
+ CommitTransactionCommand();
}
/* we don't have the relname for indexes, so we just pass the oid */