Re: using psql after you change the default port

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: using psql after you change the default port
Дата
Msg-id dcc563d10912221601l4a903240h95ee7a297653b8fe@mail.gmail.com
обсуждение исходный текст
Ответ на using psql after you change the default port  (David Kerr <dmk@mr-paradox.net>)
Ответы Re: using psql after you change the default port
Список 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 по дате отправления:

Предыдущее
От: David Kerr
Дата:
Сообщение: using psql after you change the default port
Следующее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: using psql after you change the default port