Re: NOT ENFORCED constraint feature - Mailing list pgsql-hackers

From Amul Sul
Subject Re: NOT ENFORCED constraint feature
Date
Msg-id CAAJ_b949jFC4KkZmgRA5GNV7tHOPJJDqVqBUrck3B+ykAiD_XQ@mail.gmail.com
Whole thread Raw
In response to Re: NOT ENFORCED constraint feature  (jian he <jian.universality@gmail.com>)
Responses Re: NOT ENFORCED constraint feature
List pgsql-hackers
On Mon, Dec 9, 2024 at 9:40 PM jian he <jian.universality@gmail.com> wrote:
>
> hi.
> only applied v7-0001.
>
> alter_table.sgml says we can specify enforceability
> for  ALTER TABLE ADD column_constraint
> and ALTER TABLE ADD column_constraint table_constraint.
> but we didn't have a test for column_constraint in alter_table.sql
>
> so segmental fault happened again:
>

This is an assertion failure introduced by the patch to ensure that a
NOT ENFORCED constraint is marked as invalid. The failure occurs
because skip_validation and initially_valid were not set inside
transformConstraintAttrs(). I will post an updated version of the
patch tomorrow after conducting some additional testing. Thanks for
the test.

Regards,
Amul



pgsql-hackers by date:

Previous
From: Eric Hanson
Date:
Subject: Re: Proposal: Role Sandboxing for Secure Impersonation
Next
From: Tom Lane
Date:
Subject: Re: Assert failure on running a completed portal again