1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-30 06:01:21 +03:00
Files
postgres/src/backend
Tom Lane d1d094e4cf Simplify and improve ProcessStandbyHSFeedbackMessage logic.
There's no need to clamp the standby's xmin to be greater than
GetOldestXmin's result; if there were any such need this logic would be
hopelessly inadequate anyway, because it fails to account for
within-database versus cluster-wide values of GetOldestXmin.  So get rid of
that, and just rely on sanity-checking that the xmin is not wrapped around
relative to the nextXid counter.  Also, don't reset the walsender's xmin if
the current feedback xmin is indeed out of range; that just creates more
problems than we already had.  Lastly, don't bother to take the
ProcArrayLock; there's no need to do that to set xmin.

Also improve the comments about this in GetOldestXmin itself.
2011-10-20 19:43:45 -04:00
..
2011-06-19 00:39:19 +03:00
2011-01-01 13:18:15 -05:00
2011-06-09 14:32:50 -04:00
2011-09-22 23:24:25 +03:00
2011-06-09 14:32:50 -04:00
2011-01-01 13:18:15 -05:00
2011-06-09 14:32:50 -04:00
2011-09-22 23:24:25 +03:00