| From: | Thomas Munro <thomas(dot)munro(at)gmail(dot)com> |
|---|---|
| To: | Alexander Lakhin <exclusion(at)gmail(dot)com> |
| Cc: | PostgreSQL mailing lists <pgsql-bugs(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: BUG #17116: Assert failed in SerialSetActiveSerXmin() on commit of parallelized serializable transaction |
| Date: | 2021-07-28 05:02:31 |
| Message-ID: | CA+hUKGJ+V_9CGwFRU3qtZObfcKu-pLWKhocfQd4ouiZExPd4ug@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
On Wed, Jul 28, 2021 at 9:00 AM Alexander Lakhin <exclusion(at)gmail(dot)com> wrote:
> Thanks! With the new fix applied, my multiple installcheck test survives
> 100+ iterations.
Thanks.
Here's an updated version. No code change, but now with a change to
serializable-parallel-2.sql so that the second assertion you mentioned
fails on unpatched master. The intention of that test was to exercise
the SXACT_FLAG_RO_SAFE optimisation in a parallel query, and it did
that, but in a sort of degenerate way: sequential scans acquire
predicate locks *before entering parallel mode*, so the optimisation
is triggered immediately. This version triggers the optimisation in a
parallel worker, and then the final cleanup happens in the leader,
which is the interesting case.
> (Except for read-only-anomaly-3, that causes another
> assertion fail but I believe that it's not related to the initial issue
> and deserves another bug report.)
Huh. I tried and failed to find that one with concurrent runs. I'll
wait for your next report before I do anything, just in case there's a
connection.
| Attachment | Content-Type | Size |
|---|---|---|
| v3-0001-Fix-assert-failures-in-parallel-SERIALIZABLE-READ.patch | text/x-patch | 8.6 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Andrey V. Lepikhov | 2021-07-28 06:39:35 | Re: The case when AsyncAppend exists also in the qual of Async ForeignScan |
| Previous Message | Etsuro Fujita | 2021-07-28 03:35:29 | Re: The case when AsyncAppend exists also in the qual of Async ForeignScan |