pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Matheus de Oliveira <matioli.matheus@gmail.com>
Cc: Fujii Masao <masao.fujii@gmail.com>
Cc: andrew.pennebaker@gmail.com
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #10991: psql -c ignores my pager settings in ~/.psqlrc
Date: Wed, 30 Jul 2014 18:49:09 -0400
Message-ID: <20140730224909.GA1040@momjian.us> (raw)
In-Reply-To: <CAJghg4+2DQGCJY0O4NcsiLdoj-gH3FFR9U+f_TnLLY5p10+L3w@mail.gmail.com>
References: <20140718160405.2826.51207@wrigleys.postgresql.org>
	<CAHGQGwE2vQwt_w6-rTJBpo7QRZLVYXBMbcZiJwRSVHtv4C0U-w@mail.gmail.com>
	<CAJghg4+2DQGCJY0O4NcsiLdoj-gH3FFR9U+f_TnLLY5p10+L3w@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On Fri, Jul 18, 2014 at 05:17:42PM -0300, Matheus de Oliveira wrote:
> 
> On Fri, Jul 18, 2014 at 2:36 PM, Fujii Masao <masao.fujii@gmail.com> wrote:
> 
>     > 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
> 
> 
> A nice workaround is:
> 
>     $ echo "YOUR COMMANDS HERE" | psql

I assume psql --no-psqlrc also works.

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + Everyone has their own god. +


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (8+ messages)  latest in thread

Message-ID: <20140730224909.GA1040@momjian.us>
Permalink:  ../20140730224909.GA1040@momjian.us/
Also on:    postgresql.org/message-id/20140730224909.GA1040@momjian.us

 · 

reply

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: bruce@momjian.us, matioli.matheus@gmail.com, masao.fujii@gmail.com, andrew.pennebaker@gmail.com
  Subject: Re: BUG #10991: psql -c ignores my pager settings in ~/.psqlrc
  In-Reply-To: <20140730224909.GA1040@momjian.us>
  References: <20140718160405.2826.51207@wrigleys.postgresql.org> <CAHGQGwE2vQwt_w6-rTJBpo7QRZLVYXBMbcZiJwRSVHtv4C0U-w@mail.gmail.com> <CAJghg4+2DQGCJY0O4NcsiLdoj-gH3FFR9U+f_TnLLY5p10+L3w@mail.gmail.com> <20140730224909.GA1040@momjian.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