mirror of
https://github.com/postgres/postgres.git
synced 2025-08-27 07:42:10 +03:00
Add TEMP tables/indexes. Add COPY pfree(). Other cleanups.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Id: hio.c,v 1.15 1998/12/15 12:45:14 vadim Exp $
|
||||
* $Id: hio.c,v 1.16 1999/02/02 03:43:57 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -110,7 +110,7 @@ RelationPutHeapTupleAtEnd(Relation relation, HeapTuple tuple)
|
||||
ItemId itemId;
|
||||
Item item;
|
||||
|
||||
if (!relation->rd_islocal)
|
||||
if (!relation->rd_myxactonly)
|
||||
LockRelation(relation, ExtendLock);
|
||||
|
||||
/*
|
||||
@@ -158,7 +158,7 @@ RelationPutHeapTupleAtEnd(Relation relation, HeapTuple tuple)
|
||||
elog(ERROR, "Tuple is too big: size %d", len);
|
||||
}
|
||||
|
||||
if (!relation->rd_islocal)
|
||||
if (!relation->rd_myxactonly)
|
||||
UnlockRelation(relation, ExtendLock);
|
||||
|
||||
offnum = PageAddItem((Page) pageHeader, (Item) tuple->t_data,
|
||||
|
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.29 1999/01/29 09:22:53 vadim Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.30 1999/02/02 03:44:00 momjian Exp $
|
||||
*
|
||||
* NOTES
|
||||
* Transaction aborts can now occur two ways:
|
||||
@@ -850,7 +850,7 @@ StartTransaction()
|
||||
are created in the course of the transactions
|
||||
they need to be destroyed properly at the end of the transactions
|
||||
*/
|
||||
InitTempRelList();
|
||||
InitNoNameRelList();
|
||||
|
||||
/* ----------------
|
||||
* done with start processing, set current transaction
|
||||
@@ -917,7 +917,7 @@ CommitTransaction()
|
||||
AtCommit_Notify();
|
||||
|
||||
CloseSequences();
|
||||
DestroyTempRels();
|
||||
DestroyNoNameRels();
|
||||
AtEOXact_portals();
|
||||
RecordTransactionCommit();
|
||||
RelationPurgeLocalRelation(true);
|
||||
@@ -984,7 +984,7 @@ AbortTransaction()
|
||||
AtEOXact_portals();
|
||||
RecordTransactionAbort();
|
||||
RelationPurgeLocalRelation(false);
|
||||
DestroyTempRels();
|
||||
DestroyNoNameRels();
|
||||
AtAbort_Cache();
|
||||
AtAbort_Locks();
|
||||
AtAbort_Memory();
|
||||
|
Reference in New Issue
Block a user