aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2013-11-27 17:49:12 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2013-11-28 12:00:12 -0300
commite4828e9ccba731178dd77aed078db7ceb0e1e8d1 (patch)
treea145e5f5c9360b1fad8dc33eb10373766f12961b /src/backend/tcop/postgres.c
parentc235a6a589bbd0a24e54fdb0df28979c9fb09463 (diff)
downloadpostgresql-e4828e9ccba731178dd77aed078db7ceb0e1e8d1.tar.gz
postgresql-e4828e9ccba731178dd77aed078db7ceb0e1e8d1.zip
Compare Xmin to previous Xmax when locking an update chain
Not doing so causes us to traverse an update chain that has been broken by concurrent page pruning. All other code that traverses update chains uses this check as one of the cases in which to stop iterating, so replicate it here too. Failure to do so leads to erroneous CLOG, subtrans or multixact lookups. Per discussion following the bug report by J Smith in CADFUPgc5bmtv-yg9znxV-vcfkb+JPRqs7m2OesQXaM_4Z1JpdQ@mail.gmail.com as diagnosed by Andres Freund.
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions