Fix the same-rel optimization when creating WAL records.

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: ec3d976bce7e322c29f1007d19b63b7a3a1a6ee4
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2015-05-04T18:03:36Z
Releases: 9.5.0
Fix the same-rel optimization when creating WAL records.

prev_regbuf was never set, and therefore the same-rel flag was never set on
WAL records.

Report and fix by Zhanq Zq

Files

PathChange+/−
src/backend/access/transam/xloginsert.c modified +1 −1