Re: pg_basebackup for streaming base backups

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема Re: pg_basebackup for streaming base backups
Дата
Msg-id AANLkTikRxKMb5KMK26GcKfA+ytNjqMboE--JGNPRThOo@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pg_basebackup for streaming base backups  (Magnus Hagander <magnus@hagander.net>)
Ответы Re: pg_basebackup for streaming base backups  (Magnus Hagander <magnus@hagander.net>)
Список pgsql-hackers
On Mon, Jan 17, 2011 at 9:43 PM, Magnus Hagander <magnus@hagander.net> wrote:
>> Probably yes, for consistency.  I have been thinking for a while,
>> however, that it would be very good if the tools also supported a
>> conninfo string, so you don't have to invent a new option for every new
>> connection option.  psql already supports that.
>
> libpq has an option to expand a connection string if it's passed in
> the database name, it seems. The problem is that this is done on the
> dbname parameter - won't work in pg_dump for example, without special
> treatment, since the db name is used in the client there.

If conninfo is specified, you can just append the "dbname=replication"
into it and pass it to libpq as dbname. I don't think that supporting
conninfo is difficult.

Regards,

--
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center


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

Предыдущее
От: Fujii Masao
Дата:
Сообщение: Re: pg_basebackup for streaming base backups
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: pg_basebackup for streaming base backups