Re: Assert failure on bms_equal(child_joinrel->relids, child_joinrelids)

From: Richard Guo <guofenglinux(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Assert failure on bms_equal(child_joinrel->relids, child_joinrelids)
Date: 2023-07-24 02:47:00
Message-ID: CAMbWs49A8H+=hPzrnYO-zwNxJBfHpdOaNYe+Q+-mjzKaq=P_uQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, Jul 22, 2023 at 12:02 AM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> Richard Guo <guofenglinux(at)gmail(dot)com> writes:
> > Instead of fixing add_outer_joins_to_relids() to cope with child joins,
> > I'm wondering if we can build join relids for a child join from its
> > parent by adjust_child_relids, something like attached.
>
> That looks like a good solid solution. Pushed with a bit of
> editorialization --- mostly, that I put the test case into
> partition_join.sql where there's already suitable test tables.

Thanks for pushing it!

Thanks
Richard

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bharath Rupireddy 2023-07-24 03:01:01 Re: Support worker_spi to execute the function dynamically.
Previous Message Amit Kapila 2023-07-24 02:46:43 Re: pgsql: Allow tailoring of ICU locales with custom rules