Ignore CatalogSnapshot when checking COPY FREEZE prerequisites.

Noah Misch <noah@leadboat.com>

Commit: 2168f37c4db65f40925f4f8ccbb901544a5edb84
Author: Noah Misch <noah@leadboat.com>
Date: 2017-11-05T17:25:59Z
Releases: 10.1
Ignore CatalogSnapshot when checking COPY FREEZE prerequisites.

This restores the ability, essentially lost in commit
ffaa44cb559db332baeee7d25dedd74a61974203, to use COPY FREEZE under
REPEATABLE READ isolation.  Back-patch to 9.4, like that commit.

Reviewed by Tom Lane.

Discussion: https://postgr.es/m/CA+TgmoahWDm-7fperBxzU9uZ99LPMUmEpSXLTw9TmrOgzwnORw@mail.gmail.com

Files

PathChange+/−
src/backend/commands/copy.c modified +15 −3
src/backend/utils/time/snapmgr.c modified +8 −0

Discussion