diff options
author | Simon Riggs <simon@2ndQuadrant.com> | 2010-04-18 18:06:07 +0000 |
---|---|---|
committer | Simon Riggs <simon@2ndQuadrant.com> | 2010-04-18 18:06:07 +0000 |
commit | 21d6a6a12850724b53ebc240080a90597b3b2580 (patch) | |
tree | 8ed28c08925832d6219b86c9a5f40f6bad3e7ffb /src/backend/access/transam/xlog.c | |
parent | 7b130fbc503a1bfabf58c0c67cf8461e33fcc680 (diff) | |
download | postgresql-21d6a6a12850724b53ebc240080a90597b3b2580.tar.gz postgresql-21d6a6a12850724b53ebc240080a90597b3b2580.zip |
Tune GetSnapshotData() during Hot Standby by avoiding loop
through normal backends. Makes code clearer also, since we
avoid various Assert()s. Performance of snapshots taken
during recovery no longer depends upon number of read-only
backends.
Diffstat (limited to 'src/backend/access/transam/xlog.c')
-rw-r--r-- | src/backend/access/transam/xlog.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 9b6cd5253cd..1cd5df5e7a0 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.397 2010/04/16 08:58:16 heikki Exp $ + * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.398 2010/04/18 18:05:51 sriggs Exp $ * *------------------------------------------------------------------------- */ @@ -6454,6 +6454,12 @@ CheckRecoveryConsistency(void) } } +bool +XLogConsistentState(void) +{ + return reachedMinRecoveryPoint; +} + /* * Is the system still in recovery? * |