Re: infinite loop in an update statement

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
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-09 15:00:12
Message-ID: 3147833.1725894012@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Fabrice Chapuis <fabrice636861(at)gmail(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2024-09-09 15:00:19 Re: infinite loop in an update statement
Previous Message Achilleas Mantzios - cloud 2024-09-09 14:59:46 Re: Strange permission effect depending on DEFERRABILITY