Re: psql + autocommit - Mailing list pgsql-general

From John Sidney-Woollett
Subject Re: psql + autocommit
Date
Msg-id 4148B4E4.20502@wardbrook.com
Whole thread Raw
In response to Re: psql + autocommit  (John Sidney-Woollett <johnsw@wardbrook.com>)
Responses Re: psql + autocommit
Re: psql + autocommit
Re: psql + autocommit
Re: psql + autocommit
List pgsql-general
Does psql v7.4 support a global psqlrc file? I tried adding it to
/etc/postgresql/psqlrc and /etc/psqlrc but in both cases it was ignored.

Adding it to $HOME/.psqlrc worked fine, but means that I need to install
it for each user.

Any ideas why the global file doesn't work?

John Sidney-Woollett

>> Then I suggest that in addition to the per-user configuration file
>> ~/.psqlrc you implement a global configuration file
>> /etc/postgresql/psqlrc.  That would be the place you could put such a
>> setting.
>>
>>
>>> I'd also like a message in the Welcome banner telling me what the
>>> current AUTOCOMMIT setting is...
>>
>>
>>
>> Put
>>
>> \echo 'AUTOCOMMIT is' :AUTOCOMMIT
>>
>> in your configuration file and you're done.
>>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

pgsql-general by date:

Previous
From: daniel
Date:
Subject: Re: psql + autocommit
Next
From: Alvaro Herrera
Date:
Subject: Re: psql + autocommit