diff options
| author | Bruce Momjian <bruce@momjian.us> | 1999-02-02 03:45:56 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 1999-02-02 03:45:56 +0000 |
| commit | 4390b0bfbe2641ff26a35372184880348a19919e (patch) | |
| tree | 52ab7a8a528648da52a995b86aac321e6602698f /src/backend/access | |
| parent | 7fc75517df6b8f70c57b95e879fd9696935c22fd (diff) | |
| download | postgresql-4390b0bfbe2641ff26a35372184880348a19919e.tar.gz | |
Add TEMP tables/indexes. Add COPY pfree(). Other cleanups.
Diffstat (limited to 'src/backend/access')
| -rw-r--r-- | src/backend/access/heap/hio.c | 6 | ||||
| -rw-r--r-- | src/backend/access/transam/xact.c | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/backend/access/heap/hio.c b/src/backend/access/heap/hio.c index 462de54ccf..93f4f00016 100644 --- a/src/backend/access/heap/hio.c +++ b/src/backend/access/heap/hio.c @@ -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, diff --git a/src/backend/access/transam/xact.c b/src/backend/access/transam/xact.c index ec95398131..1fba777995 100644 --- a/src/backend/access/transam/xact.c +++ b/src/backend/access/transam/xact.c @@ -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(); |
