summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian2005-02-20 04:56:00 +0000
committerBruce Momjian2005-02-20 04:56:00 +0000
commit59191b2245be8458a2b063ba262218c2566e3f1f (patch)
treec6a8f4e06ef6e596a641c53b403b5f3951218d06 /src
parent3f9aec50e7e31ab8acd596a016e0dd0a1dd5e29c (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/backend/utils/time/tqual.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/backend/utils/time/tqual.c b/src/backend/utils/time/tqual.c
index cb1f7b4101..e16df0deb0 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.81 2004/12/31 22:02:56 pgsql Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/time/tqual.c,v 1.82 2005/02/20 04:56:00 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -776,6 +776,11 @@ 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)