Re: Assert failure in CTE inlining with view and correlated subquery

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Tomas Vondra <tomas(dot)vondra(at)enterprisedb(dot)com>
Cc: Richard Guo <guofenglinux(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Assert failure in CTE inlining with view and correlated subquery
Date: 2022-04-21 21:59:33
Message-ID: 3602312.1650578373@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tomas Vondra <tomas(dot)vondra(at)enterprisedb(dot)com> writes:
> On 4/21/22 21:03, Tom Lane wrote:
>> I think we should just drop this cross-check altogether; it is not nearly
>> useful enough to justify the work that'd be involved in maintaining
>> cterefcount accurately for all such transformations. All it's really
>> there for is to be sure that we don't need to make a subplan for the
>> inlined CTE.

> WFM. I'm not particularly attached to the assert, so if you say it's not
> worth it let's get rid of it.

Done.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Yura Sokolov 2022-04-21 22:58:07 Re: BufferAlloc: don't take two simultaneous locks
Previous Message Tom Lane 2022-04-21 21:34:47 Re: [RFC] building postgres with meson -v8