Since COPY fires triggers, it seems like a good idea for it to use
Tom Lane <tgl@sss.pgh.pa.us>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/copy.c | modified | +5 −2 |
| src/backend/executor/execMain.c | modified | +2 −18 |
| src/backend/utils/time/tqual.c | modified | +35 −1 |
| src/include/utils/tqual.h | modified | +2 −1 |