pgsql: Improve a number of elog messages for not-supposed-to-happen - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Improve a number of elog messages for not-supposed-to-happen
Date
Msg-id 20071231045220.98A1B7540F0@cvs.postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
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.

Tags:
----
REL8_2_STABLE

Modified Files:
--------------
    pgsql/src/backend/access/nbtree:
        nbtinsert.c (r1.146.2.1 -> r1.146.2.2)

(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/nbtree/nbtinsert.c?r1=1.146.2.1&r2=1.146.2.2)
        nbtpage.c (r1.101 -> r1.101.2.1)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/nbtree/nbtpage.c?r1=1.101&r2=1.101.2.1)
        nbtsearch.c (r1.107.2.1 -> r1.107.2.2)

(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/nbtree/nbtsearch.c?r1=1.107.2.1&r2=1.107.2.2)

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Improve a number of elog messages for not-supposed-to-happen
Next
From: momjian@postgresql.org (Bruce Momjian)
Date:
Subject: pgsql: Provide a more helpful error message when there is an autoconf