Skip to content

Commit 59191b2

Browse files
committed
I have added a define, MAKE_ALL_TUPLES_VISIBLE, to help people recover
deleted tuples. Of course it is only to be used for disaster recovery.
1 parent 3f9aec5 commit 59191b2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/backend/utils/time/tqual.c

Lines changed: 6 additions & 1 deletion
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.81 2004/12/31 22:02:56 pgsql Exp $
19+
* $PostgreSQL: pgsql/src/backend/utils/time/tqual.c,v 1.82 2005/02/20 04:56:00 momjian Exp $
2020
*
2121
*-------------------------------------------------------------------------
2222
*/
@@ -776,6 +776,11 @@ 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+
779784
if (!(tuple->t_infomask & HEAP_XMIN_COMMITTED))
780785
{
781786
if (tuple->t_infomask & HEAP_XMIN_INVALID)

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