Re: [PoC] Reducing planning time when tables have many partitions

From: Amit Langote <amitlangote09(at)gmail(dot)com>
To: David Rowley <dgrowleyml(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Ashutosh Bapat <ashutosh(dot)bapat(dot)oss(at)gmail(dot)com>, Yuya Watari <watari(dot)yuya(at)gmail(dot)com>, Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, Dmitry Dolgov <9erthalion6(at)gmail(dot)com>, PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, jian he <jian(dot)universality(at)gmail(dot)com>, Alena Rybakina <lena(dot)ribackina(at)yandex(dot)ru>, Andrei Lepikhov <a(dot)lepikhov(at)postgrespro(dot)ru>, Thom Brown <thom(at)linux(dot)com>, Zhang Mingli <zmlpostgres(at)gmail(dot)com>
Subject: Re: [PoC] Reducing planning time when tables have many partitions
Date: 2025-04-10 04:57:22
Message-ID: CA+HiwqEZvKh8oLyffdqSPw625ZSZoAFEiMVv3GGLartK8wRaTw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Apr 10, 2025 at 12:03 PM David Rowley <dgrowleyml(at)gmail(dot)com> wrote:
> On Wed, 9 Apr 2025 at 17:38, Amit Langote <amitlangote09(at)gmail(dot)com> wrote:
> > Still, maybe a tiny tweak to the last line could help steer readers
> > right without diving into storage. How about:
> >
> > Most operations on EquivalenceClasses should ignore child members,
> > which are stored separately from normal members.
>
> I think the only part of the current text that makes me slightly
> uncomfortable is the "ignore child members". I don't mind your text,
> but it does introduce detail about how the members are stored, which
> isn't there before.
>
> I think the "ignore child members" part could be fixed with:
>
> --- a/src/backend/optimizer/README
> +++ b/src/backend/optimizer/README
> @@ -902,7 +902,7 @@ contain the equivalent child-relation variables or
> expressions. These
> members are *not* full-fledged members of the EquivalenceClass and do not
> affect the class's overall properties at all. They are kept only to
> simplify matching of child-relation expressions to EquivalenceClasses.
> -Most operations on EquivalenceClasses should ignore child members.
> +Most operations on EquivalenceClasses needn't look at child members.
>
> Would that be ok?

Yeah, I think that wording works well. It avoids sounding too strict
but still points things in the right direction.

--
Thanks, Amit Langote

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Rowley 2025-04-10 05:35:22 Re: [PoC] Reducing planning time when tables have many partitions
Previous Message YeXiu 2025-04-10 04:42:07 Re: Feature Recommendations for Logical Subscriptions