Fix building with WAL_DEBUG.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 7 Nov 2014 21:04:53 +0000 (23:04 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 7 Nov 2014 21:09:31 +0000 (23:09 +0200)
commit7250d8535b11d6443a9b27299e586c3df0654302
tree46d3bfe3628cc55e7f8fe8227d259cb09f67dadd
parent5ea86e6e65dd2da3e9a3464484985d48328e7fe3
Fix building with WAL_DEBUG.

Now that the backup blocks are appended to the WAL record in xloginsert.c,
XLogInsert doesn't see them anymore and cannot remove them from the version
reconstructed for xlog_outdesc. This makes running with wal_debug=on more
expensive, as we now make (unnecessary) temporary copies of the backup
blocks, but it doesn't seem worth convoluting the code to keep that
optimization.

Reported by Alvaro Herrera.
src/backend/access/transam/xlog.c