Commit 5845bfb8 authored by Bruce Momjian's avatar Bruce Momjian

Move define MAKE_ALL_TUPLES_VISIBLE to a more logical place.

parent 59191b22
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* IDENTIFICATION * 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 ...@@ -776,11 +776,6 @@ bool
HeapTupleSatisfiesSnapshot(HeapTupleHeader tuple, Snapshot snapshot, HeapTupleSatisfiesSnapshot(HeapTupleHeader tuple, Snapshot snapshot,
Buffer buffer) 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_COMMITTED))
{ {
if (tuple->t_infomask & HEAP_XMIN_INVALID) if (tuple->t_infomask & HEAP_XMIN_INVALID)
...@@ -965,7 +960,12 @@ HeapTupleSatisfiesSnapshot(HeapTupleHeader tuple, Snapshot snapshot, ...@@ -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; return false;
#else
return true;
#endif
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment