Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1em2iQ-00058m-Fv for pgsql-general@arkaria.postgresql.org; Wed, 14 Feb 2018 19:27:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1em2iO-0000nJ-CJ for pgsql-general@arkaria.postgresql.org; Wed, 14 Feb 2018 19:27:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1em2iN-0000n9-Us for pgsql-general@lists.postgresql.org; Wed, 14 Feb 2018 19:27:36 +0000 Received: from sonic302-22.consmr.mail.gq1.yahoo.com ([98.137.68.148]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1em2iK-0006jv-0z for pgsql-general@postgresql.org; Wed, 14 Feb 2018 19:27:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1518636448; bh=XZ/7vK8H/wF4kA5COxZBbuB0Vx0q32CfcKC1kbFCNvA=; h=Date:From:To:In-Reply-To:References:Subject:From:Subject; b=mCRXm4LbQ7Vo2UmZznIMN4rlNiT2lVUMt5mOFrp5ZOJk4/xE85u60k6QkwUVqEv1F7Rdcq+dc1OKsx5amcH6k16MbNOmgb6w8SyTMWwssvNzyVoVaH+YW+41eDmQdZexPPMvMk+r+303DcuuUlU4m7w9pviBGF2jufFyBcUnN4NpDaJYQJT5109m91IDyxPOQ2Ar4Y++FdUdkBIfaL15MJy9QrAXE4rJOEtiWtjholfJPtEtsnbPunaUzZZgGQz0zRSuOL7U+cgs63hrePX7+zxb5jLo2ocDQfBepaEopnvHfXTd9NyuvwNHgQ06PIruYUjViLDQ0CqAzY7i/G+4Ng== X-YMail-OSG: 2S2TP_UVM1kv7QDdkIow.wU0t6BzM.oIWdMYi3hnfCXbWbeh6RSyDeinme9EoE9 6WQUiSmELs3ohVRBZcuhQGHlx0hzRCLs9e3_ecDQ1ee4QTgVmGg86Mln8skqZPKpdJTExRlbi0pC g9l6.RzAfnLlQeau6dQ73Vzy7m25jtNd4rnPBljVff9yhqXzCaQPBNUfMSiNDpkFHkIwM2HB_38h 2HC.D_wEiLTCMDZ4Prsqkrf2EqVAPRs5oxyRSo4sqdZd.pIDNL70qpuftEUy1g3v8GXRgDl0O_vQ pEbtbaD9maldFDoaJf1vaXPVyErK3aYyjP10qKtUQ_Lih3ZQckaPfsf7WEMB1cvxjhOa59ui0sik LlDCBzj5KKDP99CmvBck8OJradat37Rjefz07UoaNNeqzlzwF7f6HUjmKl2a0UUp1zHbEQOHRa1a ju5kH3kakoEFZSeFfhw4_.WJA70MOc42vLqeK02tL.bjbrxN101LICP1vYzSxHzJA4vRZ9lqrtJD YaDV3nrIkNDy.EbrPD2Ox1jGxrB43DyaXtJdX2B8rkaItYbOQASqOvB5tiyGWMOfOe8LKbaIa1qJ LoMjtciWurA-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.gq1.yahoo.com with HTTP; Wed, 14 Feb 2018 19:27:28 +0000 Date: Wed, 14 Feb 2018 19:27:26 +0000 (UTC) From: Pierre Timmermans To: pgsql-general@postgresql.org, Venkateswaran Message-ID: <1967814526.885559.1518636446225@mail.yahoo.com> In-Reply-To: <1518616787774-0.post@n3.nabble.com> References: <1518616787774-0.post@n3.nabble.com> Subject: Re: Split read/write queries between 2 servers (one master and one slave with streaming replication)? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_885558_410562717.1518636446224" X-Mailer: WebService/1.1.11419 YMailNorrin Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Content-Length: 3642 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_885558_410562717.1518636446224 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable pgpool does just that: it enables you to use the standby database as a read= only while other queries are sent to the primary database only (http://www= .pgpool.net/). Good product and good support (on the list=C2=B0 This looks a very interesting possibility, although it is more related to a= utomated failover than to load balancing of read only queries :=C2=A0http:/= /paquier.xyz/postgresql-2/postgres-10-libpq-read-write/, depending on your = client it might be supported. It is not supported - yet ? - by the node-pos= tgres driver. Regards,=C2=A0 Pierre=20 On Wednesday, February 14, 2018, 3:29:03 PM GMT+1, Venkateswaran wrote: =20 =20 Hi, I am also trying to split read and write queries, where reads should go to the slave server (streaming replication) and writes to the master server. Any tool available to perform this activity instead of two connection pool? -- Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.ht= ml =20 ------=_Part_885558_410562717.1518636446224 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
pgpool does just that: it e= nables you to use the standby database as a read only while other queries a= re sent to the primary database only (ht= tp://www.pgpool.net/). Good product and good support (on the list=C2=B0=

This looks a very interesting possibility, althou= gh it is more related to automated failover than to load balancing of read = only queries : http://paquier.xyz/postgresql-2/postgres-10-l= ibpq-read-write/, depending on your client it might be supported. It is= not supported - yet ? - by the node-postgres driver.

<= div>Regards, 

P= ierre


=20
=20
On Wednesday, February 14, 2018, 3:29:03 PM GMT+1, = Venkateswaran <venkateswaran.srec@gmail.com> wrote:


Hi,
I am also trying to split read and write queries, w= here reads should go to
the slave server (streami= ng replication) and writes to the master server.
= Any tool available to perform this activity instead of two connection pool?=



--
Sent from: http://www.postgresql-archive.org/Post= greSQL-general-f1843780.html

------=_Part_885558_410562717.1518636446224--