From: | Rama Krishnan <raghuldrag(at)gmail(dot)com> |
---|---|
To: | Ben Chobot <bench(at)silentmedia(dot)com> |
Cc: | Postgres General <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Doubt on pgbouncer |
Date: | 2021-07-05 00:07:41 |
Message-ID: | CAJWX+ENynPi70Ti9zK692e8=dgTLToXicS=3xtopdsvUJas40g@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Thank you for the clarification.
On Sat, 3 Jul, 2021, 23:20 Ben Chobot, <bench(at)silentmedia(dot)com> wrote:
> 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.
>
From | Date | Subject | |
---|---|---|---|
Next Message | Yi Sun | 2021-07-05 00:58:12 | Re: postgresql version 13 repo question |
Previous Message | Adrian Klaver | 2021-07-04 20:19:53 | Re: Damaged (during upgrade?) table, how to repair? |