Re: SR slaves and .pgpass - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: SR slaves and .pgpass
Date
Msg-id 4C0D1999.5090900@dunslane.net
Whole thread Raw
In response to Re: SR slaves and .pgpass  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers

Tom Lane wrote:
> Why don't we improve the code, instead?  In particular make
> libpqrcv_connect() do
>
> -    snprintf(conninfo_repl, sizeof(conninfo_repl), "%s replication=true", conninfo);
> +    snprintf(conninfo_repl, sizeof(conninfo_repl), "%s database=replication replication=true", conninfo);
>
> I don't think it's unlikely that someone would try to enter a
> replication-specific password into ~/.pgpass.
>
>             
>   

+1. It's highly likely - that's how we got here in the first place. It 
seems to me like a perfectly reasonable thing to do.

cheers

andrew


pgsql-hackers by date:

Previous
From: Dave Cramer
Date:
Subject: pgstatindex still throws ERROR: value "3220078592" is out of range for type integer
Next
From: Mike Toews
Date:
Subject: psql: ON_ERROR_STOP command-line flag for scripts