mirror of
https://github.com/postgres/postgres.git
synced 2025-06-20 15:22:23 +03:00
Merge Resdom nodes into TargetEntry nodes to simplify code and save a
few palloc's. I also chose to eliminate the restype and restypmod fields entirely, since they are redundant with information stored in the node's contained expression; re-examining the expression at need seems simpler and more reliable than trying to keep restype/restypmod up to date. initdb forced due to change in contents of stored rules.
This commit is contained in:
@ -71,9 +71,8 @@ transformFromClause().</A> Query.rtable holds the query's range table.</P><P>
|
||||
Certain queries, like <I>SELECT,</I> return columns of data. Other
|
||||
queries, like <I>INSERT</I> and <I>UPDATE,</I> specify the columns
|
||||
modified by the query. These column references are converted to <A
|
||||
HREF="../../include/nodes/primnodes.h">Resdom</A> entries, which are
|
||||
placed in <A HREF="../../include/nodes/parsenodes.h">target list
|
||||
entries,</A> and linked together to make up the <I>target list</I> of
|
||||
HREF="../../include/nodes/primnodes.h">TargetEntry</A> entries, which are
|
||||
linked together to make up the <I>target list</I> of
|
||||
the query. The target list is stored in Query.targetList, which is
|
||||
generated by <A
|
||||
HREF="../../backend/parser/parse_target.c">transformTargetList().</A></P><P>
|
||||
|
Reference in New Issue
Block a user