Improve a number of elog messages for not-supposed-to-happen cases in btrees,
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 31 Dec 2007 04:52:20 +0000 (04:52 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 31 Dec 2007 04:52:20 +0000 (04:52 +0000)
commitb5ad0398925f5c0025a7208283785b7d970fd206
treefccc49d7b093461753a354d74edb996f66b78381
parent9cf59f8798f10c0210b671b7c1abacbed42a1d9a
Improve a number of elog messages for not-supposed-to-happen cases in btrees,
since these seem to happen after all in corrupted indexes.  Make sure we
supply the index name in all cases, and provide relevant block numbers where
available.  Also consistently identify the index name as such.

Back-patch to 8.2, in hopes that this might help Mason Hale figure out his
problem.
src/backend/access/nbtree/nbtinsert.c
src/backend/access/nbtree/nbtpage.c
src/backend/access/nbtree/nbtsearch.c