mirror of
https://github.com/postgres/postgres.git
synced 2025-06-05 23:56:58 +03:00
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
This commit is contained in:
parent
35afec71ae
commit
fe32343814
@ -132,8 +132,10 @@ typedef struct ExprState
|
|||||||
bool *innermost_domainnull;
|
bool *innermost_domainnull;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* For expression nodes that support soft errors. Should be set to NULL
|
* For expression nodes that support soft errors. Should be set to NULL if
|
||||||
* before calling ExecInitExprRec() if the caller wants errors thrown.
|
* 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;
|
ErrorSaveContext *escontext;
|
||||||
} ExprState;
|
} ExprState;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user