Re: infinite loop in an update statement

From: Greg Sabino Mullane <htamfids(at)gmail(dot)com>
To: Fabrice Chapuis <fabrice636861(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: infinite loop in an update statement
Date: 2024-09-11 12:29:40
Message-ID: CAKAnmmKyoo3WB1-j4gz8Si11OGcgSfCCVbu+N=rmzyBHJ8=GSQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Sep 11, 2024 at 6:14 AM Fabrice Chapuis <fabrice636861(at)gmail(dot)com>
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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2024-09-11 12:39:05 Re: Error:could not extend file " with FileFallocate(): No space left on device
Previous Message Pecsök Ján 2024-09-11 10:48:43 RE: Error:could not extend file " with FileFallocate(): No space left on device