Search Postgresql Archives

Re: infinite loop in an update statement

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Tue, Sep 10, 2024 at 4:49 PM Fabrice Chapuis <fabrice636861@xxxxxxxxx> wrote:
no lock, in view pg_stat_activity

status = active
wait event = NULL
wait event type = NULL

On Mon, Sep 9, 2024 at 5:00 PM Tom Lane <tgl@xxxxxxxxxxxxx> wrote:
Fabrice Chapuis <fabrice636861@xxxxxxxxx> 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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux