| From: | Jeremy Finzel <finzelj(at)gmail(dot)com> |
|---|---|
| To: | Jeff Janes <jeff(dot)janes(at)gmail(dot)com> |
| Cc: | Postgres General <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: Deadlock between concurrent index builds on different tables |
| Date: | 2017-12-23 18:11:47 |
| Message-ID: | CAMa1XUg52fT1KrF9pWAa4rKWTpXjp__AAVQLY6wF24s=tRtVSQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
>
>
>> Each index build needs to wait for all other transactions (Including the
> ones used by the other index build) to finish. So I don't think a deadlock
> here is unexpected.
>
> Cheers,
>
> Jeff
>
Does that mean I should never build more than one concurrent index at a
time within the entire cluster? If so, that is not clear from the
documentation.
So if I start 2 index builds within a second of each other, you are saying
that the first will not finish even though it started first because there
is a long transaction from the second index build? I would expect much more
deadlocks in this case, but building 5 indexes concurrently at a time of a
total 15 indexes I only get one or two deadlocks. I would expect many more
if I can’t even have 2 at once...
Thanks,
Jeremy
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jeremy Finzel | 2017-12-23 18:13:20 | Re: Deadlock between concurrent index builds on different tables |
| Previous Message | Ken Tanzer | 2017-12-23 17:49:04 | Re: Array of foreign key |