Re: Display output file name in psql prompt? - Mailing list pgsql-hackers

From Josh Berkus
Subject Re: Display output file name in psql prompt?
Date
Msg-id 513FA204.3030709@agliodbs.com
Whole thread Raw
In response to Re: Display output file name in psql prompt?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Display output file name in psql prompt?  (Alex <ash@commandprompt.com>)
List pgsql-hackers
Tom,

> If you're proposing changing the contents of the default prompt, I think
> that has very little chance of passing.  A new option for something to
> add into a custom prompt might get accepted.  I'm not sure that that
> approach would do much for the scenario you describe, since it's
> unlikely that anyone would add it to their prompt (at least not before
> they'd gotten burnt...).  However, I don't recall hearing of anyone
> getting confused like this before, and you say you figured it out pretty
> quickly, so it doesn't seem like a big problem.

Well, I think having a \ command to show the current \o setting would be
fine.  Actually, it might be better to show *all* psql settings with a
general command, including things like \timing and \pset.

-- 
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Display output file name in psql prompt?
Next
From: Palle Girgensohn
Date:
Subject: leaking lots of unreferenced inodes (pg_xlog files?), maybe after moving tables and indexes to tablespace on different volume