From: | Magnus Hagander <magnus(at)hagander(dot)net> |
---|---|
To: | Fujii Masao <masao(dot)fujii(at)gmail(dot)com> |
Cc: | Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Andrew Dunstan <andrew(at)dunslane(dot)net>, Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: 'replication' keyword on .pgpass (Streaming Replication) |
Date: | 2010-01-07 08:44:21 |
Message-ID: | 9837222c1001070044wa10c5b6md5b9f20848732d62@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Thu, Jan 7, 2010 at 07:19, Fujii Masao <masao(dot)fujii(at)gmail(dot)com> wrote:
> On Wed, Jan 6, 2010 at 11:11 PM, Magnus Hagander <magnus(at)hagander(dot)net> wrote:
>> I haven't read up on the rest of the patch, but where do we put the
>> rest of the information about the replication master? Like which IP
>> and port to connect to? Perhaps it could/should go there?
>
> Such information are supplied in the parameter 'primary_conninfo' of
> recovery.conf. For example;
>
> primary_conninfo = 'host=192.168.1.50 port=5432 user=foo'
So the password can just go there, no?
If an untrusted user has direct read access to your PGDATA directory
(where recovery.conf goes), you've lost already...
--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/
From | Date | Subject | |
---|---|---|---|
Next Message | Magnus Hagander | 2010-01-07 08:46:19 | Re: 'replication' keyword on .pgpass (Streaming Replication) |
Previous Message | Takahiro Itagaki | 2010-01-07 08:31:13 | Re: Buffer statistics for pg_stat_statements |