Re: support fast default for domain with constraints

Andrew Dunstan <andrew@dunslane.net>

From: Andrew Dunstan <andrew@dunslane.net>
To: jian he <jian.universality@gmail.com>, Viktor Holmberg <v@viktorh.net>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2026-03-12T22:07:48Z
Lists: pgsql-hackers
On 2026-03-11 We 11:36 PM, jian he wrote:
> On Thu, Mar 12, 2026 at 3:50 AM Andrew Dunstan<andrew@dunslane.net> wrote:
>> Also added some tests.
> V11 looks good to me.



Pushed after further minor review.


cheers


andrew

--
Andrew Dunstan
EDB:https://www.enterprisedb.com

Commits

  1. Enable fast default for domains with non-volatile constraints

  2. Extend DomainHasConstraints() to optionally check constraint volatility

  3. Restrict virtual columns to use built-in functions and types

  4. Replace EEOP_DONE with special steps for return/no return

  5. Add soft error handling to some expression nodes