Re: pg9.6 segfault using simple query (related to use fk for join estimates)

Поиск
Список
Период
Сортировка
Искать
От
Julien Rouhaud
Тема
Re: pg9.6 segfault using simple query (related to use fk for join estimates)
Дата
Msg-id
572384D7.1020602@dalibo.com
Ответ на
Список
Дерево обсуждения
pg9.6 segfault using simple query (related to use fk for join estimates) Stefan Huehner <stefan@huehner.org>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) Michael Paquier <michael.paquier@gmail.com>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) Julien Rouhaud <julien.rouhaud@dalibo.com>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) Tom Lane <tgl@sss.pgh.pa.us>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) Julien Rouhaud <julien.rouhaud@dalibo.com>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) Tom Lane <tgl@sss.pgh.pa.us>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) David Rowley <david.rowley@2ndquadrant.com>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) David Rowley <david.rowley@2ndquadrant.com>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) Tom Lane <tgl@sss.pgh.pa.us>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) Robert Haas <robertmhaas@gmail.com>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) Robert Haas <robertmhaas@gmail.com>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) Robert Haas <robertmhaas@gmail.com>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) Robert Haas <robertmhaas@gmail.com>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) Tom Lane <tgl@sss.pgh.pa.us>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) Robert Haas <robertmhaas@gmail.com>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) David Rowley <david.rowley@2ndquadrant.com>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) Tom Lane <tgl@sss.pgh.pa.us>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) David Rowley <david.rowley@2ndquadrant.com>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) Simon Riggs <simon@2ndQuadrant.com>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) Simon Riggs <simon@2ndQuadrant.com>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) Robert Haas <robertmhaas@gmail.com>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) Noah Misch <noah@leadboat.com>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) Noah Misch <noah@leadboat.com>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) Noah Misch <noah@leadboat.com>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) Noah Misch <noah@leadboat.com>
Re: Re: pg9.6 segfault using simple query (related to use fk for join estimates) Tom Lane <tgl@sss.pgh.pa.us>
Re: Re: pg9.6 segfault using simple query (related to use fk for join estimates) Noah Misch <noah@leadboat.com>
Re: Re: pg9.6 segfault using simple query (related to use fk for join estimates) Tom Lane <tgl@sss.pgh.pa.us>
Re: Re: pg9.6 segfault using simple query (related to use fk for join estimates) Robert Haas <robertmhaas@gmail.com>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) Robert Haas <robertmhaas@gmail.com>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) Tom Lane <tgl@sss.pgh.pa.us>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) Tom Lane <tgl@sss.pgh.pa.us>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) Tom Lane <tgl@sss.pgh.pa.us>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) Tom Lane <tgl@sss.pgh.pa.us>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) Tom Lane <tgl@sss.pgh.pa.us>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) Tom Lane <tgl@sss.pgh.pa.us>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) David Rowley <david.rowley@2ndquadrant.com>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) Simon Riggs <simon@2ndQuadrant.com>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) Robert Haas <robertmhaas@gmail.com>
Re: pg9.6 segfault using simple query (related to use fk for join estimates) Tomas Vondra <tomas.vondra@2ndquadrant.com>
On 29/04/2016 13:20, Michael Paquier wrote:
> On Fri, Apr 29, 2016 at 7:25 PM, Stefan Huehner  wrote:
>> If you need any more info or testing done just let me know.
> 
> The information you are providing is sufficient to reproduce the
> problem, thanks! I have added this bug to the list of open items for
> 9.6.
> 

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.

-- 
Julien Rouhaud
http://dalibo.com - http://dalibo.org
В списке pgsql-hackers по дате отправления
От: Rodney Lott
Дата:
От: Simon Riggs
Дата:
FAQ