aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAmit Langote <amitlan@postgresql.org>2024-09-06 10:12:00 +0900
committerAmit Langote <amitlan@postgresql.org>2024-09-06 10:13:53 +0900
commit3422f5f93fcf3a6418e32e4fead20067c1425712 (patch)
treea0a13151abad5c10e261f9dfe39fccf5dca66983 /src
parent7829f85a6285b3703a53ba5963a4df2e768014df (diff)
downloadpostgresql-3422f5f93fcf3a6418e32e4fead20067c1425712.tar.gz
postgresql-3422f5f93fcf3a6418e32e4fead20067c1425712.zip
Update comment about ExprState.escontext
The updated comment provides more helpful guidance by mentioning that escontext should be set when soft error handling is needed. Reported-by: Jian He <jian.universality@gmail.com> Discussion: https://postgr.es/m/CACJufxEo4sUjKCYtda0_qt9tazqqKPmF1cqhW9KBOUeJFqQd2g@mail.gmail.com Backpatch-through: 17
Diffstat (limited to 'src')
-rw-r--r--src/include/nodes/execnodes.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/include/nodes/execnodes.h b/src/include/nodes/execnodes.h
index 627f99c13d1..516b9487435 100644
--- a/src/include/nodes/execnodes.h
+++ b/src/include/nodes/execnodes.h
@@ -132,8 +132,10 @@ typedef struct ExprState
bool *innermost_domainnull;
/*
- * For expression nodes that support soft errors. Should be set to NULL
- * before calling ExecInitExprRec() if the caller wants errors thrown.
+ * For expression nodes that support soft errors. Should be set to NULL if
+ * the caller wants errors to be thrown. Callers that do not want errors
+ * thrown should set it to a valid ErrorSaveContext before calling
+ * ExecInitExprRec().
*/
ErrorSaveContext *escontext;
} ExprState;