Re: minor comments issue in ResultRelInfo src/include/nodes/execnodes.h
От | David Rowley |
---|---|
Тема | Re: minor comments issue in ResultRelInfo src/include/nodes/execnodes.h |
Дата | |
Msg-id | CAApHDvpfSi7kZDLPPXYHP2xfTn9Hgnu2tvawtK2z_Mxhj4hNPg@mail.gmail.com обсуждение исходный текст |
Ответ на | minor comments issue in ResultRelInfo src/include/nodes/execnodes.h (jian he <jian.universality@gmail.com>) |
Ответы |
Re: minor comments issue in ResultRelInfo src/include/nodes/execnodes.h
|
Список | pgsql-hackers |
On Mon, 12 Aug 2024 at 22:03, jian he <jian.universality@gmail.com> wrote: > AttrNumber ri_RowIdAttNo; > > /* arrays of stored generated columns expr states, for INSERT and UPDATE */ > ExprState **ri_GeneratedExprsI; > ExprState **ri_GeneratedExprsU; > } > for the struct ResultRelInfo, i've checked the above fields. > > I think first ri_RowIdAttNo applies to MERGE also. so the comments may > not be correct? Yeah, ri_RowIdAttNo is used for MERGE. We should fix that comment. > Other files comments are fine. I'd say ri_GeneratedExprsI and ri_GeneratedExprsU are also used for MERGE and the comment for those is also outdated. See: ExecMergeMatched -> ExecUpdateAct -> ExecUpdatePrepareSlot -> ExecComputeStoredGenerated(..., CMD_UPDATE) ExecMergeNotMatched -> ExecInsert -> ExecComputeStoredGenerated(..., CMD_INSERT) David
В списке pgsql-hackers по дате отправления: