Re: infinite loop in an update statement - Mailing list pgsql-general

From Tom Lane
Subject Re: infinite loop in an update statement
Date
Msg-id 3147833.1725894012@sss.pgh.pa.us
Whole thread Raw
In response to infinite loop in an update statement  (Fabrice Chapuis <fabrice636861@gmail.com>)
List pgsql-general
Fabrice Chapuis <fabrice636861@gmail.com> writes:
> why this update does not return instantly?

> UPDATE table_a a
>  SET col1 = (SELECT MIN(b.col1)
>                     FROM table_b b
>                     WHERE b.col2 = a.col2)

Maybe query is waiting for a lock on one of those tables?

            regards, tom lane



pgsql-general by date:

Previous
From: Achilleas Mantzios - cloud
Date:
Subject: Re: Strange permission effect depending on DEFERRABILITY
Next
From: Adrian Klaver
Date:
Subject: Re: infinite loop in an update statement