GetTupleForTrigger must use outer transaction's command counter for time
Tom Lane <tgl@sss.pgh.pa.us>
GetTupleForTrigger must use outer transaction's command counter for time qual checking, not GetCurrentCommandId. Per test case from Steve Wolfe.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/trigger.c | modified | +20 −13 |
| src/backend/executor/execMain.c | modified | +5 −3 |
| src/include/commands/trigger.h | modified | +8 −6 |