Improve a number of elog messages for not-supposed-to-happen cases in btrees,

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 163195338f42f38a702484e3afe3b7cc967fd4ba
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2007-12-31T04:52:20Z
Releases: 8.2.6
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.

Files