Re: Fix a wrong comment in setrefs.c

From: Richard Guo <guofenglinux(at)gmail(dot)com>
To: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fix a wrong comment in setrefs.c
Date: 2023-12-01 11:17:22
Message-ID: CAMbWs49fC=acc+ykCxszGu5DPDDZ7OOXkKtF4XT14i+u1w_n3w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Nov 28, 2023 at 8:19 PM Heikki Linnakangas <hlinnaka(at)iki(dot)fi> wrote:

> On 03/11/2023 08:10, Richard Guo wrote:
> > On Tue, Sep 26, 2023 at 9:51 AM Richard Guo <guofenglinux(at)gmail(dot)com
> > <mailto:guofenglinux(at)gmail(dot)com>> wrote:
> > On Tue, Sep 26, 2023 at 5:45 AM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us
> > <mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us>> wrote:
> >
> > I'm inclined to write the comment more like "Usually the equal()
> > check is redundant, but in setop plans it may not be, since
> > prepunion.c assigns ressortgroupref equal to the column resno
> > without regard to whether that matches the topmost level's
> > sortgrouprefs and without regard to whether any implicit
> coercions
> > are added in the setop tree. We might have to clean that up
> > someday;
> > but for now, just ignore any false matches."
> >
> > +1. It explains the situation much more clearly and accurately.
> >
> > To make it easier to review, I've updated the patch to be so.
>
> Committed, thanks!

Thanks for pushing!

Thanks
Richard

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Daniel Gustafsson 2023-12-01 11:22:50 Re: pgsql: Clean up role created in new subscription test.
Previous Message Drouvot, Bertrand 2023-12-01 11:15:16 Re: Synchronizing slots from primary to standby