Re: [sqlsmith] Failed assertion in adjust_appendrel_attrs_mutator

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andreas Seltenreich <seltenreich(at)gmx(dot)de>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [sqlsmith] Failed assertion in adjust_appendrel_attrs_mutator
Date: 2017-10-22 17:07:03
Message-ID: 15463.1508692023@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Andreas Seltenreich <seltenreich(at)gmx(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andreas Seltenreich 2017-10-22 17:20:30 Re: Discussion on missing optimizations
Previous Message Andreas Seltenreich 2017-10-22 16:49:22 [sqlsmith] Failed assertion in adjust_appendrel_attrs_mutator