public inbox for [email protected]  
help / color / mirror / Atom feed
From: Greg Sabino Mullane <[email protected]>
To: Fabrice Chapuis <[email protected]>
Cc: [email protected]
Subject: Re: infinite loop in an update statement
Date: Wed, 11 Sep 2024 08:29:40 -0400
Message-ID: <CAKAnmmKyoo3WB1-j4gz8Si11OGcgSfCCVbu+N=rmzyBHJ8=GSQ@mail.gmail.com> (raw)
In-Reply-To: <CAA5-nLD9tFX_AMNP2hbh_OD2FHoSfjp0PQHR4BTzDNO4NvUiBg@mail.gmail.com>
References: <CAA5-nLDmkuRbjHJvf2-Sz0FxtJtoFdrg4mUTy6N84UpZtGZJwQ@mail.gmail.com>
	<[email protected]>
	<CAA5-nLAqRy5-3DkoDZn-k2quAvqUx6KwT=_JcHouAqX4poMm0A@mail.gmail.com>
	<CAA5-nLD9tFX_AMNP2hbh_OD2FHoSfjp0PQHR4BTzDNO4NvUiBg@mail.gmail.com>

On Wed, Sep 11, 2024 at 6:14 AM Fabrice Chapuis <[email protected]>
wrote:

> status = active
>> wait event = NULL
>> wait event type = NULL
>>
>
That seems quite unlikely. Perhaps you are seeing the pg_stat_activity
query itself? Try this:

select state, now()-state_change, wait_event_type, wait_event, query
from pg_stat_activity where query ~ 'SELECT MIN' and pg_backend_pid() <>
pid;

Cheers,
Greg


view thread (2+ messages)

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: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: infinite loop in an update statement
  In-Reply-To: <CAKAnmmKyoo3WB1-j4gz8Si11OGcgSfCCVbu+N=rmzyBHJ8=GSQ@mail.gmail.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