Re: pg9.6 segfault using simple query (related to use fk for join estimates) - Mailing list pgsql-hackers

From Tom Lane
Subject Re: pg9.6 segfault using simple query (related to use fk for join estimates)
Date
Msg-id 17639.1461945908@sss.pgh.pa.us
Whole thread Raw
In response to Re: pg9.6 segfault using simple query (related to use fk for join estimates)  (Julien Rouhaud <julien.rouhaud@dalibo.com>)
Responses Re: pg9.6 segfault using simple query (related to use fk for join estimates)  (Julien Rouhaud <julien.rouhaud@dalibo.com>)
List pgsql-hackers
Julien Rouhaud <julien.rouhaud@dalibo.com> writes:
> The segfault is caused by quals_match_foreign_key() calling get_leftop()
> and get_rightop() on a ScalarArrayOpExpr node.

> Reordering the common fields of OpExpr and ScalarArrayOpExpr at the
> beginning of the struct so the get_*op() work with either (as in
> attached patch) fixes the issue.

> I'm not sure that assuming this compatibility is the right way to fix
> this though.

It certainly isn't.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Lets (not) break all the things. Was: [pgsql-advocacy] 9.6 -> 10.0
Next
From: "David G. Johnston"
Date:
Subject: Re: Add jsonb_compact(...) for whitespace-free jsonb to text