agora inbox for pgsql-admin@postgresql.org
help / color / mirror / Atom feedFrom: Scott Ribe <scott_ribe@elevated-dev.com>
To: Rajesh Kumar <rajeshkumar.dba09@gmail.com>
Cc: Pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: Client not able to pick up
Date: Tue, 2 Jul 2024 06:42:46 -0600
Message-ID: <177F52B5-FCD8-4EAC-9277-52674A5952F9@elevated-dev.com> (raw)
In-Reply-To: <CAJk5AtY89NpL=syZTS9vSwndLF9Si2swLyZ0n6EdP08Opy76_Q@mail.gmail.com>
References: <CAJk5AtY89NpL=syZTS9vSwndLF9Si2swLyZ0n6EdP08Opy76_Q@mail.gmail.com>
> 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 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
view thread (9+ messages) latest in thread
Message-ID: <177F52B5-FCD8-4EAC-9277-52674A5952F9@elevated-dev.com>
Permalink: ../177F52B5-FCD8-4EAC-9277-52674A5952F9@elevated-dev.com/
Also on: postgresql.org/message-id/177F52B5-FCD8-4EAC-9277-52674A5952F9@elevated-dev.com
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: scott_ribe@elevated-dev.com, rajeshkumar.dba09@gmail.com, pgsql-admin@lists.postgresql.org
Subject: Re: Client not able to pick up
In-Reply-To: <177F52B5-FCD8-4EAC-9277-52674A5952F9@elevated-dev.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox