aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/funcs.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 11:54:25 -0300
commit2a4b6eed0916a8fdc57b4778ecb1463fe752d369 (patch)
treeb8a6bafe6edb4d60ad41d27b10323fab1e52feea /src/tutorial/funcs.c
parent4ed0640e5c356e0935c3a057de7361fc444c0056 (diff)
downloadpostgresql-2a4b6eed0916a8fdc57b4778ecb1463fe752d369.tar.gz
postgresql-2a4b6eed0916a8fdc57b4778ecb1463fe752d369.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/tutorial/funcs.c')
0 files changed, 0 insertions, 0 deletions