mirror of
https://github.com/postgres/postgres.git
synced 2025-08-21 10:42:50 +03:00
Get rid of ReferentialIntegritySnapshotOverride by extending Executor API
to allow es_snapshot to be set to SnapshotNow rather than a query snapshot. This solves a bug reported by Wade Klaver, wherein triggers fired as a result of RI cascade updates could misbehave.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: valid.h,v 1.30 2003/08/04 02:40:10 momjian Exp $
|
||||
* $Id: valid.h,v 1.31 2003/09/25 18:58:35 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -93,7 +93,7 @@ do \
|
||||
relation, \
|
||||
buffer, \
|
||||
disk_page, \
|
||||
seeself, \
|
||||
snapshot, \
|
||||
nKeys, \
|
||||
key, \
|
||||
res) \
|
||||
@@ -112,7 +112,7 @@ do \
|
||||
{ \
|
||||
uint16 _infomask = (tuple)->t_data->t_infomask; \
|
||||
\
|
||||
(res) = HeapTupleSatisfiesVisibility((tuple), (seeself)); \
|
||||
(res) = HeapTupleSatisfiesVisibility((tuple), (snapshot)); \
|
||||
if ((tuple)->t_data->t_infomask != _infomask) \
|
||||
SetBufferCommitInfoNeedsSave(buffer); \
|
||||
} \
|
||||
|
Reference in New Issue
Block a user