diff options
| author | Noah Misch | 2017-11-05 17:25:52 +0000 |
|---|---|---|
| committer | Noah Misch | 2017-11-05 17:25:52 +0000 |
| commit | bab3a714b62160f0e89c8943c5e054649cd58945 (patch) | |
| tree | f00bf3e3accb929a9d77864e04e29ab5f2525576 /src/backend/utils/time | |
| parent | 86bc521811f381a121817fdfb096df431edb32f5 (diff) | |
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
Diffstat (limited to 'src/backend/utils/time')
| -rw-r--r-- | src/backend/utils/time/snapmgr.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/backend/utils/time/snapmgr.c b/src/backend/utils/time/snapmgr.c index 294ab705f1d..addf87dc3bb 100644 --- a/src/backend/utils/time/snapmgr.c +++ b/src/backend/utils/time/snapmgr.c @@ -1645,6 +1645,14 @@ DeleteAllExportedSnapshotFiles(void) FreeDir(s_dir); } +/* + * ThereAreNoPriorRegisteredSnapshots + * Is the registered snapshot count less than or equal to one? + * + * Don't use this to settle important decisions. While zero registrations and + * no ActiveSnapshot would confirm a certain idleness, the system makes no + * guarantees about the significance of one registered snapshot. + */ bool ThereAreNoPriorRegisteredSnapshots(void) { |
