| From: | shihao zhong <zhong950419(at)gmail(dot)com> |
|---|---|
| To: | nik(at)postgres(dot)ai |
| Cc: | alvherre(at)kurilemu(dot)de, ah(at)cybertec(dot)at, wolakk(at)gmail(dot)com, pgsql-hackers(at)lists(dot)postgresql(dot)org |
| Subject: | Re: REPACK (CONCURRENTLY): do not block the table while waiting for the final lock |
| Date: | 2026-12-05 04:48:35 |
| Message-ID: | CAGRkXqQMSX_6U8ay4kG_D-qFcTbfhCwU9psS8_iDJ5duC1fyCw@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi Antonin,
Thanks for the patch. I like that it is much simpler and does not
touch the lock manager.
> Waiting for a limited time would make more sense, but why exactly
> deadlock_timeout should control that?
REPACK has to wait at least deadlock_timeout so its own deadlock check
runs, because some cycles only REPACK can find. With a three session
cycle and deadlock_timeout = 10s, master reports a deadlock after 10
seconds but your patch still hangs after 75 seconds.
> Note that it deliberately does not teach REPACK to give up.
Also, with lock_timeout = 5s REPACK did not fail and finished after 16
seconds. Should the docs say so, or could lock_timeout still apply?
Thanks,
Shihao
| Attachment | Content-Type | Size |
|---|---|---|
| v2-0001-Don-t-block-the-table-while-REPACK-CONCURRENTLY-wait.patch | text/x-patch | 5.7 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | shihao zhong | 2026-12-05 04:53:43 | Re: [BUG] Excessive memory usage with update on STORED generated columns. |
| Previous Message | Tình Trần | 2026-12-05 04:46:09 | Re: [PATCH] Fix interval input at minimum signed field values (BUG #19746) |