pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Doubt on pgbouncer
9+ messages / 6 participants
[nested] [flat]

* Doubt on pgbouncer
@ 2021-07-03 15:35 Rama Krishnan <raghuldrag@gmail.com>
  2021-07-03 15:51 ` Re: Doubt on pgbouncer Bruce Momjian <bruce@momjian.us>
  2021-07-03 17:49 ` Re: Doubt on pgbouncer Ben Chobot <bench@silentmedia.com>
  2021-07-07 21:39 ` Re: Doubt on pgbouncer Merlin Moncure <mmoncure@gmail.com>
  2021-07-22 10:27 ` Re: Doubt on pgbouncer Ganesh Korde <ganeshakorde@gmail.com>
  0 siblings, 4 replies; 9+ messages in thread

From: Rama Krishnan @ 2021-07-03 15:35 UTC (permalink / raw)
  To: pgsql-general

Hi Team,

How can I split read and write queries using pgbouncer

Regards

A.Rama Krishnan

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&...;
Virus-free.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&...;
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Doubt on pgbouncer
  2021-07-03 15:35 Doubt on pgbouncer Rama Krishnan <raghuldrag@gmail.com>
@ 2021-07-03 15:51 ` Bruce Momjian <bruce@momjian.us>
  2021-07-03 17:21   ` Re: Doubt on pgbouncer Rama Krishnan <raghuldrag@gmail.com>
  3 siblings, 1 reply; 9+ messages in thread

From: Bruce Momjian @ 2021-07-03 15:51 UTC (permalink / raw)
  To: Rama Krishnan <raghuldrag@gmail.com>; +Cc: pgsql-general

On Sat, Jul  3, 2021 at 09:05:58PM +0530, Rama Krishnan wrote:
> 
> Hi Team,
> 
> How can I split read and write queries using pgbouncer

No.  I think only PgPool can do that because it parses the SQL.

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

  If only the physical world exists, free will is an illusion.






^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Doubt on pgbouncer
  2021-07-03 15:35 Doubt on pgbouncer Rama Krishnan <raghuldrag@gmail.com>
  2021-07-03 15:51 ` Re: Doubt on pgbouncer Bruce Momjian <bruce@momjian.us>
@ 2021-07-03 17:21   ` Rama Krishnan <raghuldrag@gmail.com>
  0 siblings, 0 replies; 9+ messages in thread

From: Rama Krishnan @ 2021-07-03 17:21 UTC (permalink / raw)
  To: Bruce Momjian <bruce@momjian.us>; +Cc: pgsql-general

Hi Bruce

Thank you for the clarification. Can you pls share any links or docs about
my doubt that can be helpful for me further information

On Sat, 3 Jul, 2021, 21:21 Bruce Momjian, <bruce@momjian.us> wrote:

> On Sat, Jul  3, 2021 at 09:05:58PM +0530, Rama Krishnan wrote:
> >
> > Hi Team,
> >
> > How can I split read and write queries using pgbouncer
>
> No.  I think only PgPool can do that because it parses the SQL.
>
> --
>   Bruce Momjian  <bruce@momjian.us>        https://momjian.us
>   EDB                                      https://enterprisedb.com
>
>   If only the physical world exists, free will is an illusion.
>
>

^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Doubt on pgbouncer
  2021-07-03 15:35 Doubt on pgbouncer Rama Krishnan <raghuldrag@gmail.com>
@ 2021-07-03 17:49 ` Ben Chobot <bench@silentmedia.com>
  2021-07-05 00:07   ` Re: Doubt on pgbouncer Rama Krishnan <raghuldrag@gmail.com>
  3 siblings, 1 reply; 9+ messages in thread

From: Ben Chobot @ 2021-07-03 17:49 UTC (permalink / raw)
  To: Rama Krishnan <raghuldrag@gmail.com>; +Cc: 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.

^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Doubt on pgbouncer
  2021-07-03 15:35 Doubt on pgbouncer Rama Krishnan <raghuldrag@gmail.com>
  2021-07-03 17:49 ` Re: Doubt on pgbouncer Ben Chobot <bench@silentmedia.com>
@ 2021-07-05 00:07   ` Rama Krishnan <raghuldrag@gmail.com>
  0 siblings, 0 replies; 9+ messages in thread

From: Rama Krishnan @ 2021-07-05 00:07 UTC (permalink / raw)
  To: Ben Chobot <bench@silentmedia.com>; +Cc: pgsql-general

Thank you for the clarification.

On Sat, 3 Jul, 2021, 23:20 Ben Chobot, <bench@silentmedia.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.
>

^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Doubt on pgbouncer
  2021-07-03 15:35 Doubt on pgbouncer Rama Krishnan <raghuldrag@gmail.com>
@ 2021-07-07 21:39 ` Merlin Moncure <mmoncure@gmail.com>
  3 siblings, 0 replies; 9+ messages in thread

From: Merlin Moncure @ 2021-07-07 21:39 UTC (permalink / raw)
  To: Rama Krishnan <raghuldrag@gmail.com>; +Cc: pgsql-general

On Sat, Jul 3, 2021 at 10:36 AM Rama Krishnan <raghuldrag@gmail.com> wrote:
>
>
> Hi Team,
>
> How can I split read and write queries using pgbouncer

Check out pgbouncer-rr.  I haven't used it, but it may do what you need.

merlin





^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Doubt on pgbouncer
  2021-07-03 15:35 Doubt on pgbouncer Rama Krishnan <raghuldrag@gmail.com>
@ 2021-07-22 10:27 ` Ganesh Korde <ganeshakorde@gmail.com>
  2021-07-22 14:53   ` Re: Doubt on pgbouncer Ninad Shah <nshah.postgres@gmail.com>
  3 siblings, 1 reply; 9+ messages in thread

From: Ganesh Korde @ 2021-07-22 10:27 UTC (permalink / raw)
  To: Rama Krishnan <raghuldrag@gmail.com>; +Cc: pgsql-general

Try using HAProxy.

Regards,
Ganesh Korde.

On Sat, 3 Jul 2021, 9:06 pm Rama Krishnan, <raghuldrag@gmail.com> wrote:

>
> Hi Team,
>
> How can I split read and write queries using pgbouncer
>
> Regards
>
> A.Rama Krishnan
>
>
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&...; Virus-free.
> www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&...;
> <#m_3619964688060668000_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>

^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Doubt on pgbouncer
  2021-07-03 15:35 Doubt on pgbouncer Rama Krishnan <raghuldrag@gmail.com>
  2021-07-22 10:27 ` Re: Doubt on pgbouncer Ganesh Korde <ganeshakorde@gmail.com>
@ 2021-07-22 14:53   ` Ninad Shah <nshah.postgres@gmail.com>
  2021-07-22 17:10     ` Re: Doubt on pgbouncer Rama Krishnan <raghuldrag@gmail.com>
  0 siblings, 1 reply; 9+ messages in thread

From: Ninad Shah @ 2021-07-22 14:53 UTC (permalink / raw)
  To: Rama Krishnan <raghuldrag@gmail.com>; +Cc: pgsql-general

Pgbouncer doesn't provide such a functionality. Kindly consider using
pgpool.

On Thu, 22 Jul 2021 at 15:58, Ganesh Korde <ganeshakorde@gmail.com> wrote:

> Try using HAProxy.
>
> Regards,
> Ganesh Korde.
>
> On Sat, 3 Jul 2021, 9:06 pm Rama Krishnan, <raghuldrag@gmail.com> wrote:
>
>>
>> Hi Team,
>>
>> How can I split read and write queries using pgbouncer
>>
>> Regards
>>
>> A.Rama Krishnan
>>
>>
>> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&...; Virus-free.
>> www.avast.com
>> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&...;
>> <#m_2585993038985863414_m_3619964688060668000_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>
>

^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Doubt on pgbouncer
  2021-07-03 15:35 Doubt on pgbouncer Rama Krishnan <raghuldrag@gmail.com>
  2021-07-22 10:27 ` Re: Doubt on pgbouncer Ganesh Korde <ganeshakorde@gmail.com>
  2021-07-22 14:53   ` Re: Doubt on pgbouncer Ninad Shah <nshah.postgres@gmail.com>
@ 2021-07-22 17:10     ` Rama Krishnan <raghuldrag@gmail.com>
  0 siblings, 0 replies; 9+ messages in thread

From: Rama Krishnan @ 2021-07-22 17:10 UTC (permalink / raw)
  To: Ninad Shah <nshah.postgres@gmail.com>; +Cc: pgsql-general

Ok, thank you sir

On Thu, 22 Jul, 2021, 20:23 Ninad Shah, <nshah.postgres@gmail.com> wrote:

> Pgbouncer doesn't provide such a functionality. Kindly consider using
> pgpool.
>
> On Thu, 22 Jul 2021 at 15:58, Ganesh Korde <ganeshakorde@gmail.com> wrote:
>
>> Try using HAProxy.
>>
>> Regards,
>> Ganesh Korde.
>>
>> On Sat, 3 Jul 2021, 9:06 pm Rama Krishnan, <raghuldrag@gmail.com> wrote:
>>
>>>
>>> Hi Team,
>>>
>>> How can I split read and write queries using pgbouncer
>>>
>>> Regards
>>>
>>> A.Rama Krishnan
>>>
>>>
>>> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&...; Virus-free.
>>> www.avast.com
>>> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&...;
>>> <#m_-3565042833678223020_m_2585993038985863414_m_3619964688060668000_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>>
>>

^ permalink  raw  reply  [nested|flat] 9+ messages in thread


end of thread, other threads:[~2021-07-22 17:10 UTC | newest]

Thread overview: 9+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-07-03 15:35 Doubt on pgbouncer Rama Krishnan <raghuldrag@gmail.com>
2021-07-03 15:51 ` Bruce Momjian <bruce@momjian.us>
2021-07-03 17:21   ` Rama Krishnan <raghuldrag@gmail.com>
2021-07-03 17:49 ` Ben Chobot <bench@silentmedia.com>
2021-07-05 00:07   ` Rama Krishnan <raghuldrag@gmail.com>
2021-07-07 21:39 ` Merlin Moncure <mmoncure@gmail.com>
2021-07-22 10:27 ` Ganesh Korde <ganeshakorde@gmail.com>
2021-07-22 14:53   ` Ninad Shah <nshah.postgres@gmail.com>
2021-07-22 17:10     ` Rama Krishnan <raghuldrag@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox