On Sun, Jan 27, 2013 at 6:30 AM, Josh Berkus <j...@agliodbs.com> wrote: > So while testing some replication stuff on 9.2.2 I discovered that it's > completely possible to connect a replica to itself. Seems like we ought > to at least be able to detect and log *that*.
We could certainly alter the protocol so that it can detect that situation, but like Simon, I dowanna. I rarely get the chance to agree wholeheartedly with Simon, so let me just take a moment to revel in it here: you have discovered a non-problem problem. Sure, if you do that, nothing useful will happen. But there are lots of non-useful things in the world you can do, and it is neither practical nor sensible to try to prevent them all. And again, yes, you could do that by accident when you meant to do something more sane, but again, there are any number of other ways to accidentally do something truly worthless. If we're going to start installing safeguards against doing stupid things, there's a long list of scenarios that happen far more regularly than this ever will and cause far more damage. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers