Ignore CatalogSnapshot when checking COPY FREEZE prerequisites.

Noah Misch <noah@leadboat.com>

Commit: 7932891ab9ccfa5003a8dce9af0bea60427469b3
Author: Noah Misch <noah@leadboat.com>
Date: 2017-11-05T17:26:43Z
Releases: 9.5.10
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