Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit59191b2

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 parent3f9aec5 commit59191b2

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(HeapTupleHeadertuple,Snapshotsnapshot,
777777
Bufferbuffer)
778778
{
779+
/* This is to be used only for disaster recovery and requires serious analysis. */
780+
#ifdefMAKE_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)

[8]ページ先頭

©2009-2025 Movatter.jp