Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id CA839B5DC16 for ; Fri, 28 Oct 2011 12:01:14 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 00519-02 for ; Fri, 28 Oct 2011 15:01:08 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id B4B00B5DC1F for ; Fri, 28 Oct 2011 12:01:08 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p9SF0sXm023408; Fri, 28 Oct 2011 11:00:54 -0400 (EDT) To: Alvaro Herrera cc: Robert Young , Heikki Linnakangas , Andres Freund , GavinFlower , Pg Bugs Subject: Re: Add statistics_collector_listen_addresses to fix hard-coding of "localhost" In-reply-to: <1319813588-sup-9035@alvh.no-ip.org> References: <201110271412.02896.andres@anarazel.de> <4EA958F0.8050402@enterprisedb.com> <28326.1319726536@sss.pgh.pa.us> <1319809042-sup-2773@alvh.no-ip.org> <1319813588-sup-9035@alvh.no-ip.org> Comments: In-reply-to Alvaro Herrera message dated "Fri, 28 Oct 2011 11:54:00 -0300" Date: Fri, 28 Oct 2011 11:00:54 -0400 Message-ID: <23407.1319814054@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201110/284 X-Sequence-Number: 31554 Alvaro Herrera writes: > Excerpts from Robert Young's message of vie oct 28 11:47:14 -0300 2011: >> I just migrate some services from one machine to another but database >> stay there. >> So, I think the most simple solution is to change “localhost” point to >> the new one, so that I need no modification of client applications. >> But found PG gave warnings. > I'm surprised that your conclusion was that the path of least resistance > was submitting a patch to Postgres. Surely patching the apps would have > been a lot easier. The fundamental problem with that kluge (and yes, it's a kluge) is that it supposes that you migrated EVERY local service to the other machine. Which, obviously, you did not. regards, tom lane