pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Strip file names reported in error messages in vpath builds 7+ messages / 2 participants [nested] [flat]
* pgsql: Strip file names reported in error messages in vpath builds @ 2011-11-30 04:59 Peter Eisentraut <peter_e@gmx.net> 0 siblings, 0 replies; 7+ messages in thread From: Peter Eisentraut @ 2011-11-30 04:59 UTC (permalink / raw) To: 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 ------ master Details ------- http://git.postgresql.org/pg/commitdiff/dd136052bcc8281dd3faa77e717cd7cec216f7c7 Modified Files -------------- src/backend/utils/error/elog.c | 18 ++++++++++++++++-- 1 files changed, 16 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Strip file names reported in error messages in vpath builds @ 2011-11-30 04:59 Peter Eisentraut <peter_e@gmx.net> 0 siblings, 0 replies; 7+ messages in thread From: Peter Eisentraut @ 2011-11-30 04:59 UTC (permalink / raw) To: 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_1_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/81a50686b884632d2e8b18ecb4c70ea2f39178d6 Modified Files -------------- src/backend/utils/error/elog.c | 18 ++++++++++++++++-- 1 files changed, 16 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Strip file names reported in error messages in vpath builds @ 2011-11-30 04:59 Peter Eisentraut <peter_e@gmx.net> 0 siblings, 0 replies; 7+ messages in thread From: Peter Eisentraut @ 2011-11-30 04:59 UTC (permalink / raw) To: 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(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Strip file names reported in error messages in vpath builds @ 2011-11-30 04:59 Peter Eisentraut <peter_e@gmx.net> 0 siblings, 0 replies; 7+ messages in thread From: Peter Eisentraut @ 2011-11-30 04:59 UTC (permalink / raw) To: 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 ------ REL8_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/fe0fa1f9b403a84f25b163a02e8676119e37b097 Modified Files -------------- src/backend/utils/error/elog.c | 18 ++++++++++++++++-- 1 files changed, 16 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Strip file names reported in error messages in vpath builds @ 2011-11-30 04:59 Peter Eisentraut <peter_e@gmx.net> 0 siblings, 0 replies; 7+ messages in thread From: Peter Eisentraut @ 2011-11-30 04:59 UTC (permalink / raw) To: 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 ------ REL8_3_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/74f02254c5c2b8f0bca49ed482b1c82899290ca5 Modified Files -------------- src/backend/utils/error/elog.c | 18 ++++++++++++++++-- 1 files changed, 16 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Strip file names reported in error messages in vpath builds @ 2011-11-30 04:59 Peter Eisentraut <peter_e@gmx.net> 0 siblings, 0 replies; 7+ messages in thread From: Peter Eisentraut @ 2011-11-30 04:59 UTC (permalink / raw) To: 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 ------ REL8_2_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/1a44811775d00ac4ac1d3e727bdc9c05ea56a8b9 Modified Files -------------- src/backend/utils/error/elog.c | 18 ++++++++++++++++-- 1 files changed, 16 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Strip file names reported in error messages on Windows, too. @ 2021-04-02 14:43 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2021-04-02 14:43 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Strip file names reported in error messages on Windows, too. Commit dd136052b established a policy that error message FILE items should include only the base name of the reporting source file, for uniformity and succinctness. We now observe that some Windows compilers use backslashes in __FILE__ strings, so truncate at backslashes as well. This is expected to fix some platform variation in the results of the new libpq_pipeline test module. Discussion: https://postgr.es/m/3650140.1617372290@sss.pgh.pa.us Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/53aafdb9ff6a561c7dea0f428a7c168f2b7e0f16 Modified Files -------------- src/backend/utils/error/elog.c | 4 ++++ 1 file changed, 4 insertions(+) ^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2021-04-02 14:43 UTC | newest] Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2011-11-30 04:59 pgsql: Strip file names reported in error messages in vpath builds Peter Eisentraut <peter_e@gmx.net> 2011-11-30 04:59 pgsql: Strip file names reported in error messages in vpath builds Peter Eisentraut <peter_e@gmx.net> 2011-11-30 04:59 pgsql: Strip file names reported in error messages in vpath builds Peter Eisentraut <peter_e@gmx.net> 2011-11-30 04:59 pgsql: Strip file names reported in error messages in vpath builds Peter Eisentraut <peter_e@gmx.net> 2011-11-30 04:59 pgsql: Strip file names reported in error messages in vpath builds Peter Eisentraut <peter_e@gmx.net> 2011-11-30 04:59 pgsql: Strip file names reported in error messages in vpath builds Peter Eisentraut <peter_e@gmx.net> 2021-04-02 14:43 pgsql: Strip file names reported in error messages on Windows, too. Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox