no lock, in view pg_stat_activitystatus = activewait event = NULLwait event type = NULLOn Mon, Sep 9, 2024 at 5:00 PM Tom Lane <tgl@sss.pgh.pa.us> wrote: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
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:
Соглашаюсь с условиями обработки персональных данных