Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZrLxD-0007Lc-MO for pgsql-hackers@arkaria.postgresql.org; Wed, 28 Oct 2015 08:19:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZrLxC-0006tk-3U for pgsql-hackers@arkaria.postgresql.org; Wed, 28 Oct 2015 08:19:30 +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) (envelope-from ) id 1ZrLxA-0006td-Vi for pgsql-hackers@postgresql.org; Wed, 28 Oct 2015 08:19:29 +0000 Received: from wagner.pp.ru ([178.63.209.18] helo=mx.wagner.pp.ru) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZrLx4-0003Tc-4V for pgsql-hackers@postgresql.org; Wed, 28 Oct 2015 08:19:27 +0000 Received: from mail.wagner.pp.ru (unknown [192.168.217.132]) by mx.wagner.pp.ru (Postfix) with ESMTP id 73BF5486144 for ; Wed, 28 Oct 2015 11:18:42 +0300 (MSK) Received: from fafnir (newmail.postgrespro.ru [93.174.131.138]) by mail.wagner.pp.ru (Postfix) with ESMTPSA id CDEA520022 for ; Wed, 28 Oct 2015 11:18:39 +0300 (MSK) Date: Wed, 28 Oct 2015 11:18:39 +0300 From: Victor Wagner To: pgsql-hackers@postgresql.org Subject: Re: Patch: Implement failover on libpq connect level. Message-ID: <20151028111839.6e73c68a@fafnir> In-Reply-To: <562E8C55.9030409@gmx.net> References: <20150818041850.GA5092@wagner.pp.ru> <20151014104151.GA6744@wagner.pp.ru> <562E8C55.9030409@gmx.net> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On Mon, 26 Oct 2015 16:25:57 -0400 Peter Eisentraut wrote: > Also, this assumes that all the components other than host and port > are the same. Earlier there was a discussion about why the ports > would ever need to be different. Well, why can't the database names > be different? I could have use for that. Because of way postgresql replication is implemented. This multihost feature is for clusters. Either for automatic switch from one cluster node to another when master node fails and one of the standbys get promoted to master, or for load balancing between hot standby nodes. Postgresql allows different replicas listen on different ports, because each replica has its own postgresql conf, but repication works on the node level, not on the database level, so all the databases from master node would be replicated with their original names. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers