]> 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>
Tue, 29 Nov 2011 21:58:03 +0000 (23:58 +0200)
commitfe0fa1f9b403a84f25b163a02e8676119e37b097
tree570025a1a5de9d50688f7042f5e3145739833ad7
parentde9b2cb3f4346fb9ff5c90c61ff40b48b83cbafc
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