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

From Álvaro Herrera
Subject Re: NOT ENFORCED constraint feature
Date
Msg-id 202503110907.nxcopwq53ivx@alvherre.pgsql
Whole thread Raw
In response to Re: NOT ENFORCED constraint feature  (Amul Sul <sulamul@gmail.com>)
List pgsql-hackers
On 2025-Feb-28, Amul Sul wrote:

> Yeah, that was intentional. I wanted to avoid recursion again by
> hitting ATExecAlterChildConstr() at the end of
> ATExecAlterConstraintInternal(). Also, I realized the value doesn’t
> matter since recurse = false is explicitly set inside the
> cmdcon->alterEnforceability condition. I wasn’t fully satisfied with
> how we handled the recursion decision (code design), so I’ll give it
> more thought. If I don’t find a better approach, I’ll add clearer
> comments to explain the reasoning.

So, did you have a chance to rethink the recursion model here?  TBH I do
not like what you have one bit.

-- 
Álvaro Herrera               48°01'N 7°57'E  —  https://www.EnterpriseDB.com/
"Para tener más hay que desear menos"



pgsql-hackers by date:

Previous
From: Amit Langote
Date:
Subject: Re: SQL Property Graph Queries (SQL/PGQ)
Next
From: Evgeny
Date:
Subject: Re: Elimination of the repetitive code at the SLRU bootstrap functions.