Skip to content

Commit 5845bfb

Browse files
committed
Move define MAKE_ALL_TUPLES_VISIBLE to a more logical place.
1 parent 59191b2 commit 5845bfb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/backend/utils/time/tqual.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* Portions Copyright (c) 1994, Regents of the University of California
1717
*
1818
* IDENTIFICATION
19-
* $PostgreSQL: pgsql/src/backend/utils/time/tqual.c,v 1.82 2005/02/20 04:56:00 momjian Exp $
19+
* $PostgreSQL: pgsql/src/backend/utils/time/tqual.c,v 1.83 2005/02/20 14:57:47 momjian Exp $
2020
*
2121
*-------------------------------------------------------------------------
2222
*/
@@ -776,11 +776,6 @@ bool
776776
HeapTupleSatisfiesSnapshot(HeapTupleHeader tuple, Snapshot snapshot,
777777
Buffer buffer)
778778
{
779-
/* This is to be used only for disaster recovery and requires serious analysis. */
780-
#ifdef MAKE_ALL_TUPLES_VISIBLE
781-
return true;
782-
#endif
783-
784779
if (!(tuple->t_infomask & HEAP_XMIN_COMMITTED))
785780
{
786781
if (tuple->t_infomask & HEAP_XMIN_INVALID)
@@ -965,7 +960,12 @@ HeapTupleSatisfiesSnapshot(HeapTupleHeader tuple, Snapshot snapshot,
965960
}
966961
}
967962

963+
/* This is to be used only for disaster recovery and requires serious analysis. */
964+
#ifdef MAKE_ALL_TUPLES_VISIBLE
968965
return false;
966+
#else
967+
return true;
968+
#endif
969969
}
970970

971971

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy