]> granicus.if.org Git - postgresql/commit
Strip file names reported in error messages in vpath builds
authorPeter Eisentraut <peter_e@gmx.net>
Tue, 29 Nov 2011 20:04:59 +0000 (22:04 +0200)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 30 Nov 2011 04:56:18 +0000 (06:56 +0200)
commitdd136052bcc8281dd3faa77e717cd7cec216f7c7
treee6a704dbd3c7ad84494a7c63f6e802d3d0ede6d9
parentbe2f909200ece7985d60848797c3eb07f9d1b995
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.
src/backend/utils/error/elog.c