]> granicus.if.org Git - postgresql/commit
Fix misleading output from gin_desc().
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 6 Apr 2012 22:10:26 +0000 (18:10 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 6 Apr 2012 22:10:26 +0000 (18:10 -0400)
commite2923d341994a0aa3881ca29f345c40a98b6cb60
tree2c8ef6eb05eb86fb1aa44286a01b190e59c6e23e
parent60243e89a707bb141aa1b164c2d6fb59e3e22408
Fix misleading output from gin_desc().

XLOG_GIN_UPDATE_META_PAGE and XLOG_GIN_DELETE_LISTPAGE records were printed
with a list link field labeled as "blkno", which was confusing, especially
when the link was empty (InvalidBlockNumber).  Print the metapage block
number instead, since that's what's actually being updated.  We could
include the link values too as a separate field, but not clear it's worth
the trouble.

Back-patch to 8.4 where the dubious code was added.
src/backend/access/gin/ginxlog.c