PostgreSQL 的 target_list分析(五)

上文说到 ColumnRef

由于 a_expr 回溯到 c_expr。

其对应的 makeColumnRef 需要构建 ColumnRef 型Node, 看看 parsenodes.h:

00203 typedef struct ColumnRef
00204 {
00205     NodeTag     type;
00206     List       *fields;         /* field names (Value strings) or A_Star */
00207     int         location;       /* token location, or -1 if unknown */
00208 } ColumnRef;
00209 

...

 
原文地址:https://www.cnblogs.com/gaojian/p/2678927.html