aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/ascii.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2011-10-20 19:43:31 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2011-10-20 19:43:31 -0400
commitb4a0223d008d7c2c9824d846e22b664b2f09cf6e (patch)
tree4feb3e84e80a2073deb4b9afa5932287ed1836b6 /src/backend/utils/adt/ascii.c
parentdce92c6d6abe302c58fd4e4221efed54913aefdb (diff)
downloadpostgresql-b4a0223d008d7c2c9824d846e22b664b2f09cf6e.tar.gz
postgresql-b4a0223d008d7c2c9824d846e22b664b2f09cf6e.zip
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.
Diffstat (limited to 'src/backend/utils/adt/ascii.c')
0 files changed, 0 insertions, 0 deletions