1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-13 07:41:39 +03:00

Fix for removal of temp tables if last transaction was aborted.

This commit is contained in:
Bruce Momjian
1999-07-02 18:09:28 +00:00
parent d20abcd8c5
commit 954e466c27
3 changed files with 10 additions and 17 deletions

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/cache/Attic/temprel.c,v 1.4 1999/05/25 22:42:16 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/cache/Attic/temprel.c,v 1.5 1999/07/02 18:09:28 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -30,6 +30,7 @@
#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"
@ -79,6 +80,8 @@ remove_all_temp_relations(void)
List *l,
*next;
StartTransactionCommand();
l = temp_rels;
while (l != NIL)
{
@ -102,6 +105,7 @@ remove_all_temp_relations(void)
l = next;
}
CommitTransactionCommand();
}
/* we don't have the relname for indexes, so we just pass the oid */