Re: psql: small patch to correct filename formatting error in '\s FILE' output

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ian Lawrence Barwick <barwick@gmail.com>
Cc: Bruce Momjian <bruce@momjian.us>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2013-11-05T22:54:32Z
Lists: pgsql-hackers
Ian Lawrence Barwick <barwick@gmail.com> writes:
> 2013/9/10 Bruce Momjian <bruce@momjian.us>:
>> I still see that weird behavior in git head:
>> 
>> pgdevel=# \s history.txt
>> Wrote history to file "./history.txt".
>> pgdevel=# \s /tmp/history.txt
>> Wrote history to file ".//tmp/history.txt".
>> pgdevel=# \cd /tmp
>> pgdevel=# \s /tmp/history.txt
>> Wrote history to file "/tmp//tmp/history.txt".
>> 
>> Should I revert the suggested patch?

> IIRC the patch was never applied, the reversion candidate is the existing
> commit 0725065b.

I reverted 0725065b.  AFAICT there is no interest in making \s produce
a reliable full path name.  There was some interest in making \cd tell
you where it'd chdir'd to, but that would be a separate patch.

			regards, tom lane


Commits

  1. This patch shows the full path name when doing a \s in psql,