Re: using psql after you change the default port

Поиск
Список
Период
Сортировка
От David Kerr
Тема Re: using psql after you change the default port
Дата
Msg-id 20091223000832.GB18657@mr-paradox.net
обсуждение исходный текст
Ответ на Re: using psql after you change the default port  (Scott Marlowe <scott.marlowe@gmail.com>)
Ответы Re: using psql after you change the default port  ("Joshua D. Drake" <jd@commandprompt.com>)
Re: using psql after you change the default port  ("Joshua D. Drake" <jd@commandprompt.com>)
Список pgsql-general
On Tue, Dec 22, 2009 at 05:01:45PM -0700, Scott Marlowe wrote:
- 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...

ok thanks, that might be an easier way to handle my scripts.

can you export PGHOST as well?

Dave

В списке pgsql-general по дате отправления:

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