From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com> |
Cc: | pgsql-bugs <pgsql-bugs(at)postgresql(dot)org> |
Subject: | Re: psqlrc overrides command line flags in PG 9.6 |
Date: | 2017-03-29 14:35:42 |
Message-ID: | 22577.1490798142@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com> writes:
> In PG 9.6 -c doesn't imply -X anymore, that's fine (well, not really,
> but let's say it is).
> However it seems it is no more possible to *override* what's in the
> psqlrc unless the config file is disabled altogether.
It was never possible to do that; the behavior has always been to
process the command line switches and then to run ~/.psqlrc.
Changing that would probably break at least as many things as it
fixes, not to mention being a complete mess implementation-wise.
You might be able to achieve the effect you're looking for with
a shell alias instead of ~/.psqlrc:
alias psql='psql --pset format=wrapped'
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Feike Steenbergen | 2017-03-29 14:54:03 | Re: BUG #14600: Passwords in user mappings leaked by psql \deu+ command |
Previous Message | Daniele Varrazzo | 2017-03-29 14:28:06 | psqlrc overrides command line flags in PG 9.6 |