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:
@ -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
|
||||
* ----------
|
||||
|
Reference in New Issue
Block a user