Re: [GENERAL] ~/.psqlrc file is ignored - Mailing list pgsql-general

From David G. Johnston
Subject Re: [GENERAL] ~/.psqlrc file is ignored
Date
Msg-id CAKFQuwbwdn1q9NJNFvV=sbArAuoGoRZ+=37iuipBLf6e1dp5Rw@mail.gmail.com
Whole thread Raw
In response to Re: [GENERAL] ~/.psqlrc file is ignored  (vstuart <mail@VictoriasJourney.com>)
Responses Re: [GENERAL] ~/.psqlrc file is ignored  (vstuart <mail@VictoriasJourney.com>)
List pgsql-general
On Wed, Jul 19, 2017 at 11:49 AM, vstuart <mail@victoriasjourney.com> wrote:
As a simple solution, I can sudo symlink MY ~/.psqlrc to that directory (/var/...; changing ownership also to postgres), but there appears to be some underlying issue, as Pg should find ~/.psqlrc, correct? 

​What does "your" ~/.psqlrc have to do with any of this?  If you are executing psql while masquarding at the postgres user its the postgres user's​ ~/.psqlrc file that will be looked for.

Typically one doesn't execute psql as the postgres user.  They configure the system so that they can execute psql as a regular user.  You should probably do that and then everything should work like you are thinking.

David J.

pgsql-general by date:

Previous
From: vstuart
Date:
Subject: Re: [GENERAL] ~/.psqlrc file is ignored
Next
From: vstuart
Date:
Subject: Re: [GENERAL] ~/.psqlrc file is ignored