]> 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:41 +0000 (18:10 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 6 Apr 2012 22:10:41 +0000 (18:10 -0400)
commit3a7fdb7068830db6796b66c551520c36719fc74c
tree55be396e779f99e03e4c2baf76835e561fca1126
parent260b119c584775b389bb5af3bf3704b03ab35416
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