diff options
author | Bruce Momjian <bruce@momjian.us> | 2005-02-20 14:57:47 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2005-02-20 14:57:47 +0000 |
commit | 5845bfb8bf7f7ccaaa4dcb0ddc1b2eee09b9b3b2 (patch) | |
tree | a72290924a9ba77e171eaf291f354f005bd5fe0d | |
parent | 59191b2245be8458a2b063ba262218c2566e3f1f (diff) | |
download | postgresql-5845bfb8bf7f7ccaaa4dcb0ddc1b2eee09b9b3b2.tar.gz postgresql-5845bfb8bf7f7ccaaa4dcb0ddc1b2eee09b9b3b2.zip |
Move define MAKE_ALL_TUPLES_VISIBLE to a more logical place.
-rw-r--r-- | src/backend/utils/time/tqual.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/backend/utils/time/tqual.c b/src/backend/utils/time/tqual.c index e16df0deb09..1dcd286f3d4 100644 --- a/src/backend/utils/time/tqual.c +++ b/src/backend/utils/time/tqual.c @@ -16,7 +16,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/time/tqual.c,v 1.82 2005/02/20 04:56:00 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/utils/time/tqual.c,v 1.83 2005/02/20 14:57:47 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -776,11 +776,6 @@ bool HeapTupleSatisfiesSnapshot(HeapTupleHeader tuple, Snapshot snapshot, Buffer buffer) { -/* This is to be used only for disaster recovery and requires serious analysis. */ -#ifdef MAKE_ALL_TUPLES_VISIBLE - return true; -#endif - if (!(tuple->t_infomask & HEAP_XMIN_COMMITTED)) { if (tuple->t_infomask & HEAP_XMIN_INVALID) @@ -965,7 +960,12 @@ HeapTupleSatisfiesSnapshot(HeapTupleHeader tuple, Snapshot snapshot, } } +/* This is to be used only for disaster recovery and requires serious analysis. */ +#ifdef MAKE_ALL_TUPLES_VISIBLE return false; +#else + return true; +#endif } |