Re: _bt_delitems_delete() should use XLogRegisterBufData(), not XLogRegisterData()

2020-01-02 Thread Peter Geoghegan
On Wed, Jan 1, 2020 at 1:00 PM Peter Geoghegan wrote: > Attached patch shows what I have in mind. The new comment block has > been copied from _bt_delitems_vacuum(). I also think that the WAL record and function signature of _bt_delitems_delete() should be brought closer to _bt_delitems_vacuum().

_bt_delitems_delete() should use XLogRegisterBufData(), not XLogRegisterData()

2020-01-01 Thread Peter Geoghegan
The RelationNeedsWAL() code block within _bt_delitems_delete() has had the following comment for many years now: /* * We need the target-offsets array whether or not we store the whole * buffer, to allow us to find the latestRemovedXid on a standby * server. */ XLogRegisterData((char *) itemno