8000 Improve code comment · postgres/postgres@fff0d1e · GitHub
[go: up one dir, main page]

Skip to content

Commit fff0d1e

Browse files
committed
Improve code comment
The previous wording was potentially confusing about the impact of the OVERRIDING clause on generated columns. Reword slightly to avoid that. Reported-by: jian he <jian.universality@gmail.com> Reviewed-by: Dean Rasheed <dean.a.rasheed@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/CACJufxFMBe0nPXOQZMLTH4Ry5Gyj4m%2B2Z05mRi9KB4hk8rGt9w%40mail.gmail.com
1 parent 1fd772d commit fff0d1e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/backend/rewrite/rewriteHandler.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -923,8 +923,9 @@ rewriteTargetListIU(List *targetList,
923923
apply_default = true;
924924

925925
/*
926-
* Can only insert DEFAULT into generated columns, regardless of
927-
* any OVERRIDING clauses.
926+
* Can only insert DEFAULT into generated columns. (The
927+
* OVERRIDING clause does not apply to generated columns, so we
928+
* don't consider it here.)
928929
*/
929930
if (att_tup->attgenerated && !apply_default)
930931
{

0 commit comments

Comments
 (0)
0