| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Richard Guo <guofenglinux(at)gmail(dot)com> |
| Cc: | Tender Wang <tndrwang(at)gmail(dot)com>, Thom Brown <thom(at)linux(dot)com>, Jacob Brazeal <jacob(dot)brazeal(at)gmail(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org |
| Subject: | Re: remove_useless_joins vs. bug #19560 |
| Date: | 2026-09-01 15:35:45 |
| Message-ID: | 1183642.1788276945@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Richard Guo <guofenglinux(at)gmail(dot)com> writes:
> On Tue, Sep 1, 2026 at 12:56 AM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> * I feel like the naming of remove_redundant_nullability_quals
>> and remove_redundant_nullability_quals_recurse is a bit weird.
>> Usually our pattern is that a function named like foo_recurse
>> is an inner workhorse for a function named foo. This is the
>> other way around, which seems like it'd confuse readers.
> I've renamed the jointree walker to remove_redundant_nullability_quals
> (it recurses into itself, so there is no wrapper to pair a "_recurse"
> with), and the helper that processes one qual list to
> strip_redundant_nullability_quals. Not sure if this is the best
> naming though.
Yeah, naming is always hard. I don't have a better suggestion than
this.
v2 patch LGTM. I might say "incomplete" rather than "one-sided"
in the commit message, but that's getting *really* nit-picky.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Nazir Bilal Yavuz | 2026-09-01 15:36:49 | Re: [PATCH] Speed up pg_waldump TAP test and fix some GitHub CI Windows flakiness |
| Previous Message | Japin Li | 2026-09-01 15:31:55 | Re: [PATCH] Remove dead code in pg_dump |