Re: Client not able to pick up - Mailing list pgsql-admin

From Scott Ribe
Subject Re: Client not able to pick up
Date
Msg-id 177F52B5-FCD8-4EAC-9277-52674A5952F9@elevated-dev.com
Whole thread Raw
In response to Client not able to pick up  (Rajesh Kumar <rajeshkumar.dba09@gmail.com>)
Responses Re: Client not able to pick up
List pgsql-admin
> On Jul 1, 2024, at 11:57 PM, Rajesh Kumar <rajeshkumar.dba09@gmail.com> wrote:
>
> 2. Why client is stucked with the message " cannot execute update in read only transaction" , eventhough master is up
andrunning. 

Because a client set a connection to read only, then later that pgbouncer -> server connection was assigned to a
differentclient. 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


pgsql-admin by date:

Previous
From: "Rainer Leo"
Date:
Subject: Re: Remote access on Windows Server
Next
From: Rajesh Kumar
Date:
Subject: Re: Client not able to pick up