Re: pgsql: Teach expr_is_nonnullable() to handle more expression types - Mailing list pgsql-hackers

From Richard Guo
Subject Re: pgsql: Teach expr_is_nonnullable() to handle more expression types
Date
Msg-id CAMbWs49b6UzqYSN1gC4nCkRSHdJD+F5hQuadF1RueDdVhgHN1g@mail.gmail.com
Whole thread
In response to Re: pgsql: Teach expr_is_nonnullable() to handle more expression types  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On Thu, Oct 8, 2026 at 10:49 PM Robert Haas <robertmhaas@gmail.com> wrote:
> But I'd be inclined to use a conditional rule only if
> we can base it on information that we already have cached in some
> planner data structure, and not if we'd have to look it up in the
> catalog.

We don't have that cached, so I've pushed a fix that just removes the
case.  It also moves the relkind test ahead of has_subclass().

- Richard



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: docs: Table 9.46. UUID Extraction Functions
Next
From: Chao Li
Date:
Subject: Re: Reset unlogged relations before syncing the data directory?