On Wed, Mar 11, 2026 at 1:18 AM Andrew Dunstan <andrew@dunslane.net> wrote:
>
> here's an updated patch set.
>
+/*
+ * ExecPrepareExprWithContext: same as ExecPrepareExpr, but with an optional
+ * ErrorSaveContext for soft error handling during domain constraint
evaluation.
+ *
+ * See ExecInitExprWithContext for details on the escontext parameter.
+ */
+ExprState *
+ExecPrepareExprWithContext(Expr *node, EState *estate, Node *escontext)
Since ExecPrepareExprWithContext can be used more broadly, we should delete the
mention of domain constraint from the above comments.
I checked alter_table.sgml again, no need to change it, I think.
Slightly changed the regression test comments.
--
jian
https://www.enterprisedb.com/