Ignore CatalogSnapshot when checking COPY FREEZE prerequisites.
authorNoah Misch <noah@leadboat.com>
Sun, 5 Nov 2017 17:25:52 +0000 (09:25 -0800)
committerNoah Misch <noah@leadboat.com>
Sun, 5 Nov 2017 17:25:52 +0000 (09:25 -0800)
commitbab3a714b62160f0e89c8943c5e054649cd58945
treef00bf3e3accb929a9d77864e04e29ab5f2525576
parent86bc521811f381a121817fdfb096df431edb32f5
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
src/backend/commands/copy.c
src/backend/utils/time/snapmgr.c