1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-13 07:41:39 +03:00

Added global variable to have RI triggers override

time qualification of HeapTupleSatisfiesSnapshot()

Jan
This commit is contained in:
Jan Wieck
1999-12-10 12:34:15 +00:00
parent d31ff14ed8
commit 62c42a05a2
4 changed files with 30 additions and 3 deletions

View File

@ -24,6 +24,7 @@
#include "utils/builtins.h"
#include "utils/inval.h"
#include "utils/syscache.h"
#include "utils/tqual.h"
DLLIMPORT TriggerData *CurrentTriggerData = NULL;
@ -1151,6 +1152,13 @@ deferredTriggerExecute(DeferredTriggerEvent event, int itemno)
if (rettuple != NULL && rettuple != &oldtuple && rettuple != &newtuple)
pfree(rettuple);
/* ----------
* Might have been a referential integrity constraint trigger.
* Reset the snapshot overriding flag.
* ----------
*/
ReferentialIntegritySnapshotOverride = false;
/* ----------
* Release buffers and close the relation
* ----------