Re: psql + autocommit

From: John Sidney-Woollett <johnsw(at)wardbrook(dot)com>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: postgres general <pgsql-general(at)postgresql(dot)org>
Subject: Re: psql + autocommit
Date: 2004-09-15 21:32:20
Message-ID: 4148B4E4.20502@wardbrook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)postgresql(dot)org

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message tmp 2004-09-15 21:51:07 Re: psql + autocommit
Previous Message daniel 2004-09-15 21:25:24 Re: psql + autocommit