Re: SR slaves and .pgpass
Andrew Dunstan <andrew@dunslane.net>
From: Andrew Dunstan <andrew@dunslane.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Fujii Masao <masao.fujii@gmail.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2010-06-07T16:08:57Z
Lists: 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