From: Tom Lane <tgl@sss.pgh.pa.us>
To: Daniele Varrazzo <daniele.varrazzo@gmail.com>
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re: psqlrc overrides command line flags in PG 9.6
Date: Wed, 29 Mar 2017 10:35:42 -0400
Message-ID: <22577.1490798142@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+mi_8a0UeuKLnCvKN2h87dwSgJJTCSxGMr-RzohqfDhPGuf7A@mail.gmail.com>
References: <CA+mi_8a0UeuKLnCvKN2h87dwSgJJTCSxGMr-RzohqfDhPGuf7A@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Daniele Varrazzo <daniele.varrazzo@gmail.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
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, daniele.varrazzo@gmail.com
Subject: Re: psqlrc overrides command line flags in PG 9.6
In-Reply-To: <22577.1490798142@sss.pgh.pa.us>
References: <CA+mi_8a0UeuKLnCvKN2h87dwSgJJTCSxGMr-RzohqfDhPGuf7A@mail.gmail.com> <22577.1490798142@sss.pgh.pa.us>
* 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