Re: BUG #10991: psql -c ignores my pager settings in ~/.psqlrc

Поиск
Список
Период
Сортировка
От Matheus de Oliveira
Тема Re: BUG #10991: psql -c ignores my pager settings in ~/.psqlrc
Дата
Msg-id CAJghg4+2DQGCJY0O4NcsiLdoj-gH3FFR9U+f_TnLLY5p10+L3w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: BUG #10991: psql -c ignores my pager settings in ~/.psqlrc  (Fujii Masao <masao.fujii@gmail.com>)
Ответы Re: BUG #10991: psql -c ignores my pager settings in ~/.psqlrc  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-bugs
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

Regards,
--=20
Matheus de Oliveira
Analista de Banco de Dados
Dextra Sistemas - MPS.Br n=C3=ADvel F!
www.dextra.com.br/postgres

В списке pgsql-bugs по дате отправления:

Предыдущее
От: David G Johnston
Дата:
Сообщение: Re: BUG #10991: psql -c ignores my pager settings in ~/.psqlrc
Следующее
От: "Arthur O'Dwyer"
Дата:
Сообщение: Re: BUG #10976: Two memory leaks in regcomp cleanup