Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b8Vgg-0003rl-Is for pgsql-general@arkaria.postgresql.org; Thu, 02 Jun 2016 16:41:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b8Vgg-0001Re-40 for pgsql-general@arkaria.postgresql.org; Thu, 02 Jun 2016 16:41:38 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b8VeN-00060K-Ei for pgsql-general@postgresql.org; Thu, 02 Jun 2016 16:39:15 +0000 Received: from hogranch.com ([75.101.82.47]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b8VeK-0005yZ-S8 for pgsql-general@postgresql.org; Thu, 02 Jun 2016 16:39:14 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id u52Gd4v22573 for ; Thu, 2 Jun 2016 09:39:04 -0700 Subject: Re: Replication To: pgsql-general@postgresql.org References: From: John R Pierce Message-ID: Date: Thu, 2 Jun 2016 09:39:07 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Pg-Spam-Score: -3.3 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org On 6/2/2016 6:32 AM, Bertrand Paquet wrote: > On an hot standby streaming server, is there any way to know, in SQL, > to know the ip of current master ? > The solution I have is to read the recovery.conf file to find > primary_conninfo, but, it can be false. "The IP" assumes there is only one... hosts can be multihomed, postgres can be listening on numerous interfaces, there is no 'the IP' -- john r pierce, recycling bits in santa cruz -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general