Re: [COMMITTERS] pgsql: Add connection messages for streaming replication. - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: [COMMITTERS] pgsql: Add connection messages for streaming replication.
Date
Msg-id 3f0b79eb1003240349i7151da8bi7a8fba4a4708de3b@mail.gmail.com
Whole thread Raw
In response to Re: [COMMITTERS] pgsql: Add connection messages for streaming replication.  (Simon Riggs <simon@2ndQuadrant.com>)
Responses Re: [COMMITTERS] pgsql: Add connection messages for streaming replication.
List 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 by date:

Previous
From: Simon Riggs
Date:
Subject: Re: [COMMITTERS] pgsql: Add connection messages for streaming replication.
Next
From: Simon Riggs
Date:
Subject: Re: [COMMITTERS] pgsql: Add connection messages for streaming replication.