Re: [PATCH] REPLICA IDENTITY USING INDEX accepts column with invalid NOT NULL - Mailing list pgsql-hackers

From Álvaro Herrera
Subject Re: [PATCH] REPLICA IDENTITY USING INDEX accepts column with invalid NOT NULL
Date
Msg-id aiuW4czjy5IKTXSS@alvherre.pgsql
Whole thread
Responses Re: [PATCH] REPLICA IDENTITY USING INDEX accepts column with invalid NOT NULL
List pgsql-hackers
On 2026-Jun-11, Masahiko Sawada wrote:

> It would be better to factor the  into a common function that checks
> whether the column has a valid NOT NULL constraint, to remove the code
> duplication.

I agree, we should have a function like
bool
notNullConstraintValidated(Oid relid, AttrNumber attnum)
in pg_constraint.c, and use it in the various places where we only care
about the constraint validation status.

-- 
Álvaro Herrera               48°01'N 7°57'E  —  https://www.EnterpriseDB.com/



pgsql-hackers by date:

Previous
From: solai v
Date:
Subject: Re: Adding pg_dump flag for parallel export to pipes
Next
From: Michael Paquier
Date:
Subject: Re: pg_restore handles extended statistics inconsistently with statistics data