Since COPY fires triggers, it seems like a good idea for it to use

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 6c6f395a8aca8a9525d62cbf46fbafd130bdb9e5
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2002-05-21T22:59:01Z
Releases: 7.3.1
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

PathChange+/−
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