Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c5CQz-0006Lp-56 for pgsql-hackers@arkaria.postgresql.org; Fri, 11 Nov 2016 14:04:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c5CQy-0006Ht-OC for pgsql-hackers@arkaria.postgresql.org; Fri, 11 Nov 2016 14:04:00 +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 1c5CQx-0006FG-4P for pgsql-hackers@postgresql.org; Fri, 11 Nov 2016 14:03:59 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c5CQu-00080t-NI for pgsql-hackers@postgresql.org; Fri, 11 Nov 2016 14:03:58 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 240952065C; Fri, 11 Nov 2016 09:03:56 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute2.internal (MEProxy); Fri, 11 Nov 2016 09:03:56 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= smtpout; bh=MCbmMNz35epTs2rua/wBndFBnfI=; b=cKNKtN5+oZVsqnrKiF5U e/7ZHMww3NiKzw+wxuUZd26dQXqp6sk6b6FrY4Z7M8XJdSv3OrFyHXud/ODgtrVV XGb03SzP989VGJZfO01Z3+XooYYyC66IOI17l0d6jP/lgAuAHDC7L4nSMSS7Bb5X WV/aJR8PP7OkzbVgRXsf0io= X-ME-Sender: X-Sasl-enc: jToV27tPqrI/TMl1AIaAi8FoCSsdGuzbmvLrGuIpqFKB 1478873035 Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id BDB6525068; Fri, 11 Nov 2016 09:03:55 -0500 (EST) Subject: Re: Patch: Implement failover on libpq connect level. To: Mithun Cy , Robert Haas References: <20150818041850.GA5092@wagner.pp.ru> Cc: Peter van Hardenberg , "pgsql-hackers@postgresql.org" From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <032ab91d-54e8-d060-30cc-ebdc60917a83@2ndquadrant.com> Date: Fri, 11 Nov 2016 09:03:55 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) 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 11/9/16 10:05 AM, Mithun Cy wrote: > As in Victor's patch we have a new connection parameter > "target_server_type", It can take 2 values 1. "any" 2. "master" with > DEFAULT as "any". If it's has the value "any" we can connect to any of > the host server (both master(primary) and slave(standby)). If the value > is "master" then we try to connect to master(primary) only. We tend to use the term "primary" instead of "master". Will this work with logical replication? -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers