Re: BUG #14657: Server process segmentation fault in v10, May 10th dev snapshot

Dilip Kumar <dilipbalaut@gmail.com>

From: Dilip Kumar <dilipbalaut@gmail.com>
To: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Cc: sveinn.sveinsson@gmail.com, pgsql-bugs@postgresql.org
Date: 2017-05-18T03:26:40Z
Lists: pgsql-bugs, pgsql-hackers
On Thu, May 18, 2017 at 7:19 AM, Amit Langote
<Langote_Amit_f8@lab.ntt.co.jp> wrote:
> Thanks for creating the patch, although I think a better fix would be to
> make get_partitioned_child_rels() do the list_copy.  That way, any other
> users of partitioned_rels will not suffer the same issue.  Attached patch
> implements that, along with a regression test.

Correct! This is generic fix.

-- 
Regards,
Dilip Kumar
EnterpriseDB: http://www.enterprisedb.com


Commits

  1. Copy partitioned_rels lists to avoid shared substructure.