Re: using psql after you change the default port - Mailing list pgsql-general

From Scott Marlowe
Subject Re: using psql after you change the default port
Date
Msg-id dcc563d10912221601l4a903240h95ee7a297653b8fe@mail.gmail.com
Whole thread Raw
In response to using psql after you change the default port  (David Kerr <dmk@mr-paradox.net>)
Responses Re: using psql after you change the default port  (David Kerr <dmk@mr-paradox.net>)
List pgsql-general
On Tue, Dec 22, 2009 at 4:57 PM, David Kerr <dmk@mr-paradox.net> wrote:
> Howdy all
>
> I changed the default port for Postgresql.
>
> Now, when I want to access postgresql via psql (on the db server),
> is there a way to make it default to the new port without using -p
> or a .psqlrc file?

You can set an envvar:

export PGPORT=5433

etc...

pgsql-general by date:

Previous
From: David Kerr
Date:
Subject: using psql after you change the default port
Next
From: "Joshua D. Drake"
Date:
Subject: Re: using psql after you change the default port