Re: Doubt on pgbouncer - Mailing list pgsql-general

From Ben Chobot
Subject Re: Doubt on pgbouncer
Date
Msg-id a869189f-37bd-d12e-f3b6-de988a88719e@silentmedia.com
Whole thread Raw
In response to Doubt on pgbouncer  (Rama Krishnan <raghuldrag@gmail.com>)
Responses Re: Doubt on pgbouncer  (Rama Krishnan <raghuldrag@gmail.com>)
List pgsql-general
Rama Krishnan wrote on 7/3/21 8:35 AM:

Hi Team,

How can I split read and write queries using pgbouncer

You do it with your application. Make a pgbouncer database for read/write queries and point it at your postgresql primary, and then make a second pgbouncer database for read-only queries and point it at a replica. Have your application connect to the proper database, depending upon its needs.

It's not transparent, but it is effective.

pgsql-general by date:

Previous
From: Rama Krishnan
Date:
Subject: Re: Doubt on pgbouncer
Next
From: Adrian Klaver
Date:
Subject: Re: Overlapping timestamptz ranges with priority