diff options
| author | Tom Lane | 2007-08-14 17:35:18 +0000 |
|---|---|---|
| committer | Tom Lane | 2007-08-14 17:35:18 +0000 |
| commit | 67f99d216a16991ade1fd8479cc01f7abb4c29ee (patch) | |
| tree | 9fecbff38153bf12d363a7c69586dbbf6044cc19 /src/include/utils | |
| parent | 6ccc262d6d9fb695d5e3330232cf30b7e37a5ead (diff) | |
Fix oversight in async-commit patch: there were some places in heapam.c
that still thought they could set HEAP_XMAX_COMMITTED immediately after
seeing the other transaction commit. Make them use the same logic as
tqual.c does to determine if the hint bit can be set yet.
Diffstat (limited to 'src/include/utils')
| -rw-r--r-- | src/include/utils/tqual.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/utils/tqual.h b/src/include/utils/tqual.h index 2baf7968fd..dd0fd1dc64 100644 --- a/src/include/utils/tqual.h +++ b/src/include/utils/tqual.h @@ -8,7 +8,7 @@ * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/utils/tqual.h,v 1.67 2007/07/25 12:22:54 mha Exp $ + * $PostgreSQL: pgsql/src/include/utils/tqual.h,v 1.68 2007/08/14 17:35:18 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -145,6 +145,9 @@ extern HTSU_Result HeapTupleSatisfiesUpdate(HeapTupleHeader tuple, extern HTSV_Result HeapTupleSatisfiesVacuum(HeapTupleHeader tuple, TransactionId OldestXmin, Buffer buffer); +extern void HeapTupleSetHintBits(HeapTupleHeader tuple, Buffer buffer, + uint16 infomask, TransactionId xid); + extern Snapshot GetTransactionSnapshot(void); extern Snapshot GetLatestSnapshot(void); extern Snapshot CopySnapshot(Snapshot snapshot); |
