Re: Client not able to pick up

From: Scott Ribe <scott_ribe(at)elevated-dev(dot)com>
To: Rajesh Kumar <rajeshkumar(dot)dba09(at)gmail(dot)com>
Cc: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Client not able to pick up
Date: 2024-07-02 12:42:46
Message-ID: 177F52B5-FCD8-4EAC-9277-52674A5952F9@elevated-dev.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

> On Jul 1, 2024, at 11:57 PM, Rajesh Kumar <rajeshkumar(dot)dba09(at)gmail(dot)com> wrote:
>
> 2. Why client is stucked with the message " cannot execute update in read only transaction" , eventhough master is up and running.

Because a client set a connection to read only, then later that pgbouncer -> server connection was assigned to a different client. You have to either:

- reset connections in pgbouncer when they are reassigned, which has its own downsides--see the docs
- fix the client so it doesn't leave connections in read only state
- have those clients connect directly to PG

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Rajesh Kumar 2024-07-02 13:25:40 Re: Client not able to pick up
Previous Message Rainer Leo 2024-07-02 12:24:09 Re: Remote access on Windows Server