Re: 'replication' keyword on .pgpass (Streaming Replication) - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: 'replication' keyword on .pgpass (Streaming Replication)
Date
Msg-id 4B45D73B.7000907@enterprisedb.com
Whole thread Raw
In response to Re: 'replication' keyword on .pgpass (Streaming Replication)  (Magnus Hagander <magnus@hagander.net>)
List pgsql-hackers
Magnus Hagander wrote:
> However, wouldn't it make more logical sense to replace "host/hostssl"
> with "replication/replicationssl" rather than overload the database
> field?

It makes more sense to me to overload the database field. When you
connect for replication, you're not connecting to any particular
database, but to a special walsender mode.

Note that 'local' makes sense for replication too; you can connect for
replication via a Unix-domain socket. Replication isn't a connection
method like host/hostssl/local are.

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


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: pg_migrator issues
Next
From: Magnus Hagander
Date:
Subject: Re: 'replication' keyword on .pgpass (Streaming Replication)