pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Strip file names reported in error messages on Windows, too.
Date: Fri, 02 Apr 2021 14:43:57 +0000
Message-ID: <E1lSL1h-00031O-Ig@gemulon.postgresql.org> (raw)

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(+)



view thread (7+ messages)

Message-ID: <E1lSL1h-00031O-Ig@gemulon.postgresql.org>
Permalink:  ../E1lSL1h-00031O-Ig@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lSL1h-00031O-Ig@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Strip file names reported in error messages on Windows, too.
  In-Reply-To: <E1lSL1h-00031O-Ig@gemulon.postgresql.org>
  References: <E1lSL1h-00031O-Ig@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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