Re: Parameter name standby_mode

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Parameter name standby_mode
Дата
Msg-id 4B751CC7.300@enterprisedb.com
обсуждение исходный текст
Ответ на Re: Parameter name standby_mode  (Joachim Wieland <joe@mcknight.de>)
Ответы Re: Parameter name standby_mode  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Joachim Wieland wrote:
> On Fri, Feb 12, 2010 at 8:59 AM, Heikki Linnakangas
> <heikki.linnakangas@enterprisedb.com> wrote:
>> Agreed. I've changed it now so that if primary_conninfo is not set, it
>> doesn't try to establish a streaming connection. If you want to get the
>> connection information from environment variables, you can use
>> primary_conninfo=''.
> 
> Why not just remove the default:
> 
> If no primary_conninfo variable is set explicitly in the configuration
> file, check the environment variables. If the environment variable is
> not set, don't try to establish a connection.

The environment variables in question are the libpq environment
variables like PGHOST, PGPORT. The server shouldn't need to know about
them. Besides, there'd still be the corner case that you really want to
use the built-in defaults, ie. connect to a server running in the same
host at the default port, so you'd not set any environment variables either.

--  Heikki Linnakangas EnterpriseDB   http://www.enterprisedb.com


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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Streaming Replication docs
Следующее
От: Federico Di Gregorio
Дата:
Сообщение: Re: Confusion over Python drivers {license}