Re: [PATCH] Clarify that "psql -c" ignores psqlrc files - Mailing list pgsql-docs

From Robert Haas
Subject Re: [PATCH] Clarify that "psql -c" ignores psqlrc files
Date
Msg-id AANLkTikvyhC0g1kdMwNAp-639ctDpmsetrhySMeUeXF4@mail.gmail.com
Whole thread Raw
In response to [PATCH] Clarify that "psql -c" ignores psqlrc files  (Tim Landscheidt <tim@tim-landscheidt.de>)
List pgsql-docs
On Tue, Jul 6, 2010 at 8:38 AM, Tim Landscheidt <tim@tim-landscheidt.de> wrote:
> Balkrishna Sharma <b_ki@hotmail.com> wrote on -admin:
>
>> Thanks. If I want to do at system-wide level, where do I store the psqlrc file (assuming I want to change the timing
behaviorsystem-wide)? 
>> (CentOS 5, Postgres 8.4)
>> $ ./pg_config --sysconfdir/opt/PostgreSQL/8.4/etc/postgresql
>> But I don't have /opt/PostgreSQL/8.4/etc/postgresql directory. Just creating the directory and putting a psqlrc file
overthere does not seem to work. 
>
>> On a side-note, I observered that timing value in ~/.psqlrc was ignored by psql -c "..." command but not by echo
"...."|psqlThoughtit was strange. 
>> [...]
>
> Patch attached to clarify the latter.

Committed.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company

pgsql-docs by date:

Previous
From: Robert Haas
Date:
Subject: Re: release-9.0.sgml changes
Next
From: Alvaro Herrera
Date:
Subject: Re: Documentation and explanatory diagrams