Re: [COMMITTERS] pgsql: Add connection messages for streaming replication.

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема Re: [COMMITTERS] pgsql: Add connection messages for streaming replication.
Дата
Msg-id 3f0b79eb1003240349i7151da8bi7a8fba4a4708de3b@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [COMMITTERS] pgsql: Add connection messages for streaming replication.  (Simon Riggs <simon@2ndQuadrant.com>)
Ответы Re: [COMMITTERS] pgsql: Add connection messages for streaming replication.  (Simon Riggs <simon@2ndQuadrant.com>)
Список pgsql-hackers
On Wed, Mar 24, 2010 at 7:29 PM, Simon Riggs <simon@2ndquadrant.com> wrote:
> So we are allowing a database to be called "REPLICATION"?

Yes.

> Surely there
> are some significant problems in that case. How will access control to
> that database work in the pg_hba.conf?

We can do that by enclosing the database field of pg_hba.conf in double
quotes as follows.
   TYPE   DATABASE        USER  CIDR-ADDRESS  METHOD   host   "replication"   foo   192.168.0.5   md5

In pg_hba.conf, double-quoted keyword like "all", "sameuser", "samerole"
or "replication" matches a database with that name.

Regards,

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


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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Add connection messages for streaming replication.
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Add connection messages for streaming replication.