From: David G Johnston <david.g.johnston@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #10991: psql -c ignores my pager settings in ~/.psqlrc
Date: Fri, 18 Jul 2014 10:54:18 -0700 (PDT)
Message-ID: <1405706058479-5811989.post@n5.nabble.com> (raw)
In-Reply-To: <CAHGQGwE2vQwt_w6-rTJBpo7QRZLVYXBMbcZiJwRSVHtv4C0U-w@mail.gmail.com>
References: <20140718160405.2826.51207@wrigleys.postgresql.org>
<CAHGQGwE2vQwt_w6-rTJBpo7QRZLVYXBMbcZiJwRSVHtv4C0U-w@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Fujii Masao-2 wrote
> On Sat, Jul 19, 2014 at 1:04 AM, <
> andrew.pennebaker@
> > wrote:
>> The following bug has been logged on the website:
>>
>> Bug reference: 10991
>> Logged by: Andrew Pennebaker
>> Email address:
> andrew.pennebaker@
>> PostgreSQL version: 9.3.4
>> Operating system: Ubuntu 14.04
>> Description:
>>
>> I never want to use the pager, as it comes up at the most inopportune
>> times
>> in Emacs shell-mode, so I have configured my ~/.psqlrc with:
>>
>> \pset pager off
>>
>> This works for psql -f
> <script>
> .psql. However, when I run one-off commands
>> with psql -c
> <command>
> , the pager pops up again, making psql -c really hard
>> to use in my Emacs workflow.
>
> .psqlrc file is ignored with -c option. This behavior is documented.
> http://www.postgresql.org/docs/devel/static/app-psql.html#R1-APP-PSQL-3
If you use "psql -c" a lot you should probably create a function/alias that
configures it in a way that is similar to the .psqlrc file you created.
Also, psql -c isn't just ignoring your pager settings but anything that is
in the .psqlrc file...as Fujii said this is documented quite explicitly in
the psql arguments section.
David J.
--
View this message in context: http://postgresql.1045698.n5.nabble.com/BUG-10991-psql-c-ignores-my-pager-settings-in-psqlrc-tp58119...
Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.
--
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: david.g.johnston@gmail.com
Subject: Re: BUG #10991: psql -c ignores my pager settings in ~/.psqlrc
In-Reply-To: <1405706058479-5811989.post@n5.nabble.com>
References: <20140718160405.2826.51207@wrigleys.postgresql.org> <CAHGQGwE2vQwt_w6-rTJBpo7QRZLVYXBMbcZiJwRSVHtv4C0U-w@mail.gmail.com> <1405706058479-5811989.post@n5.nabble.com>
* 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