On Fri, Jul 18, 2014 at 2:36 PM, Fujii Masao <masao(dot)fujii(at)gmail(dot)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,
--
Matheus de Oliveira
Analista de Banco de Dados
Dextra Sistemas - MPS.Br nível F!
www.dextra.com.br/postgres