Re: [HACKERS] [sqlsmith] Failed assertion in adjust_appendrel_attrs_mutator - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] [sqlsmith] Failed assertion in adjust_appendrel_attrs_mutator
Date
Msg-id 15463.1508692023@sss.pgh.pa.us
Whole thread Raw
In response to [HACKERS] [sqlsmith] Failed assertion in adjust_appendrel_attrs_mutator  (Andreas Seltenreich <seltenreich@gmx.de>)
Responses Re: [HACKERS] [sqlsmith] Failed assertion inadjust_appendrel_attrs_mutator
List pgsql-hackers
Andreas Seltenreich <seltenreich@gmx.de> writes:
> testing master as of 7c981590c2, sqlsmith just triggered the following
> assertion:
> TRAP: FailedAssertion("!(!((((const Node*)(node))->type) == T_SubLink))", File: "prepunion.c", Line: 2231)

Hmm.  adjust_appendrel_attrs() thinks it's only used after conversion
of sublinks to subplans, but this is a counterexample.  I wonder if
that assumption was ever correct?  Or maybe we need to rethink what
it does when recursing into RTE subqueries.
        regards, tom lane


--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

pgsql-hackers by date:

Previous
From: Andreas Seltenreich
Date:
Subject: [HACKERS] [sqlsmith] Failed assertion in adjust_appendrel_attrs_mutator
Next
From: Andreas Seltenreich
Date:
Subject: Re: [HACKERS] Discussion on missing optimizations