aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistvacuum.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2011-06-10 17:03:27 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2011-06-10 17:03:27 -0400
commit0f452e8ef4eb7d6cde86ca8c5a2ab60044041a4c (patch)
tree3adc10cb62b6f1c6e8d91ab1a8a8cb2c25b99cbc /src/backend/access/gist/gistvacuum.c
parente5b50d0ffb72935b844a2d78b6f81e3b6c85cba9 (diff)
downloadpostgresql-0f452e8ef4eb7d6cde86ca8c5a2ab60044041a4c.tar.gz
postgresql-0f452e8ef4eb7d6cde86ca8c5a2ab60044041a4c.zip
Work around gcc 4.6.0 bug that breaks WAL replay.
ReadRecord's habit of using both direct references to tmpRecPtr and references to *RecPtr (which is pointing at tmpRecPtr) triggers an optimization bug in gcc 4.6.0, which apparently has forgotten about aliasing rules. Avoid the compiler bug, and make the code more readable to boot, by getting rid of the direct references. Improve the comments while at it. Back-patch to all supported versions, in case they get built with 4.6.0. Tom Lane, with some cosmetic suggestions from Alex Hunsaker
Diffstat (limited to 'src/backend/access/gist/gistvacuum.c')
0 files changed, 0 insertions, 0 deletions