postgresql/src/include/nodes
Tom Lane 89a41a1b6b Improve castNode notation by introducing list-extraction-specific variants.
This extends the castNode() notation introduced by commit 5bcab1114 to
provide, in one step, extraction of a list cell's pointer and coercion to
a concrete node type.  For example, "lfirst_node(Foo, lc)" is the same
as "castNode(Foo, lfirst(lc))".  Almost half of the uses of castNode
that have appeared so far include a list extraction call, so this is
pretty widely useful, and it saves a few more keystrokes compared to the
old way.

As with the previous patch, back-patch the addition of these macros to
pg_list.h, so that the notation will be available when back-patching.

Patch by me, after an idea of Andrew Gierth's.

Discussion: https://postgr.es/m/14197.1491841216@sss.pgh.pa.us
2017-04-10 13:51:29 -04:00
..
bitmapset.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
execnodes.h Ensure that RowExprs and whole-row Vars produce the expected column names. 2014-11-10 15:21:14 -05:00
makefuncs.h Fix CREATE MATVIEW/CREATE TABLE AS ... WITH NO DATA to not plan the query. 2016-06-27 15:57:21 -04:00
memnodes.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
nodeFuncs.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
nodes.h Orthography fixes for new castNode() macro. 2017-01-27 08:33:58 -05:00
params.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
parsenodes.h Rework 'MOVE ALL' to 'ALTER .. ALL IN TABLESPACE' 2014-08-21 19:12:00 -04:00
pg_list.h Improve castNode notation by introducing list-extraction-specific variants. 2017-04-10 13:51:29 -04:00
plannodes.h Fix improper repetition of previous results from a hashed aggregate. 2016-08-24 14:37:51 -04:00
primnodes.h Fix assorted fallout from IS [NOT] NULL patch. 2016-07-28 16:09:15 -04:00
print.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
readfuncs.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
relation.h Still more fixes for planner's handling of LATERAL references. 2015-12-11 14:22:20 -05:00
replnodes.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
tidbitmap.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
value.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00