diff options
| author | Bruce Momjian | 2003-06-12 01:42:21 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2003-06-12 01:42:21 +0000 |
| commit | acd1536d9f14df6a0fdb45e22ec317bc9b254c08 (patch) | |
| tree | 619252b476460a968b98835ec9d78ec1e7bca277 /src/include | |
| parent | 752a4dac50a9a3e99eb60a5c6cedf8a962de6518 (diff) | |
Up to now, SerializableSnapshot and QuerySnapshot are malloc'ed and
free'd for every transaction or statement, respectively. This patch
puts these data structures into static memory, thus saving a few CPU
cycles and two malloc calls per transaction or (in isolation level
READ COMMITTED) per query.
Manfred Koizar
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/utils/tqual.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/utils/tqual.h b/src/include/utils/tqual.h index bba4eac14ce..15966dc04e7 100644 --- a/src/include/utils/tqual.h +++ b/src/include/utils/tqual.h @@ -8,7 +8,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: tqual.h,v 1.44 2003/02/23 23:20:52 tgl Exp $ + * $Id: tqual.h,v 1.45 2003/06/12 01:42:21 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -113,7 +113,7 @@ extern int HeapTupleSatisfiesUpdate(HeapTuple tuple, extern HTSV_Result HeapTupleSatisfiesVacuum(HeapTupleHeader tuple, TransactionId OldestXmin); -extern Snapshot GetSnapshotData(bool serializable); +extern Snapshot GetSnapshotData(Snapshot snapshot, bool serializable); extern void SetQuerySnapshot(void); extern Snapshot CopyQuerySnapshot(void); extern void FreeXactSnapshot(void); |
