On Wed, Mar 7, 2018 at 5:36 AM, Rajkumar Raghuwanshi
<rajkumar.raghuwan...@enterprisedb.com> wrote:
> With 0001 applied on PG-head, I got reference leak warning and later a
> server crash.
> this crash is reproducible with enable_parallel_append=off also.
> below is the test case to reproduce this.

New patches attached, fixing all 3 of the issues you reported:

0001 is a new patch to fix the incorrect parallel safety marks on
upper relations.  I don't know of a visible effect of this patch by
itself, but there might be one.

0002 is the same as the old 0001, but I made a fix in
SS_charge_for_initplans() which fixed your most recent crash report.
Either this or the previous change also fixed the crash you saw when
using tab-completion.  Also, I added some test cases based on your
failing examples.

0003-0005 are the same as the old 0002-0004.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Attachment: 0005-Consider-Parallel-Append-as-a-way-to-implement-a-uni.patch
Description: Binary data

Attachment: 0004-Generate-a-separate-upper-relation-for-each-stage-of.patch
Description: Binary data

Attachment: 0003-Rewrite-recurse_union_children-to-iterate-rather-tha.patch
Description: Binary data

Attachment: 0002-Let-Parallel-Append-over-simple-UNION-ALL-have-parti.patch
Description: Binary data

Attachment: 0001-Correctly-assess-parallel-safety-of-tlists-when-SRFs.patch
Description: Binary data

Reply via email to