Re: using psql after you change the default port

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: David Kerr <dmk(at)mr-paradox(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: using psql after you change the default port
Date: 2009-12-23 00:01:45
Message-ID: dcc563d10912221601l4a903240h95ee7a297653b8fe@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Dec 22, 2009 at 4:57 PM, David Kerr <dmk(at)mr-paradox(dot)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...

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2009-12-23 00:06:46 Re: using psql after you change the default port
Previous Message David Kerr 2009-12-22 23:57:20 using psql after you change the default port