pgsql: Strip file names reported in error messages in vpath builds

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Strip file names reported in error messages in vpath builds
Date: 2011-11-30 04:59:19
Message-ID: E1RVcGN-0001tW-LV@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Strip file names reported in error messages in vpath builds

In vpath builds, the __FILE__ macro that is used in verbose error
reports contains the full absolute file name, which makes the error
messages excessively verbose. So keep only the base name, thus
matching the behavior of non-vpath builds.

Branch
------
REL9_0_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/75b61836940aaa81f3073c7e77f8c295d99093ae

Modified Files
--------------
src/backend/utils/error/elog.c | 18 ++++++++++++++++--
1 files changed, 16 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2011-11-30 05:38:00 pgsql: Tweak previous patch to ensure edata->filename always gets initi
Previous Message Tom Lane 2011-11-30 04:20:16 pgsql: Remove duplicate definition of 'progname'.