From 6c6f395a8aca8a9525d62cbf46fbafd130bdb9e5 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 21 May 2002 22:59:01 +0000 Subject: Since COPY fires triggers, it seems like a good idea for it to use a frozen (copied) snapshot too. Move execMain's snapshot copying code out into a subroutine in case we find other places that need it. --- src/include/utils/tqual.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/utils/tqual.h b/src/include/utils/tqual.h index f5f03ea01af..3ddceff5f8d 100644 --- a/src/include/utils/tqual.h +++ b/src/include/utils/tqual.h @@ -8,7 +8,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: tqual.h,v 1.39 2002/05/21 22:05:55 tgl Exp $ + * $Id: tqual.h,v 1.40 2002/05/21 22:59:01 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -112,6 +112,7 @@ extern HTSV_Result HeapTupleSatisfiesVacuum(HeapTupleHeader tuple, extern Snapshot GetSnapshotData(bool serializable); extern void SetQuerySnapshot(void); +extern Snapshot CopyQuerySnapshot(void); extern void FreeXactSnapshot(void); #endif /* TQUAL_H */ -- cgit v1.2.3