aboutsummaryrefslogtreecommitdiff
path: root/src/include/nodes/parsenodes.h
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2013-07-01 14:41:33 -0400
committerRobert Haas <rhaas@postgresql.org>2013-07-01 14:46:54 -0400
commit0d22987ae9fe5dc9861e314f1609c8b69d61bbfc (patch)
treef99ba262c356a7fd3c8af83847ea53a056a6f714 /src/include/nodes/parsenodes.h
parent3132a9b7ab3d76c15f88cfa29792fd888e7a959e (diff)
downloadpostgresql-0d22987ae9fe5dc9861e314f1609c8b69d61bbfc.tar.gz
postgresql-0d22987ae9fe5dc9861e314f1609c8b69d61bbfc.zip
Add a convenience routine makeFuncCall to reduce duplication.
David Fetter and Andrew Gierth, reviewed by Jeevan Chalke
Diffstat (limited to 'src/include/nodes/parsenodes.h')
-rw-r--r--src/include/nodes/parsenodes.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h
index 9453e1dfdfa..de22dff8935 100644
--- a/src/include/nodes/parsenodes.h
+++ b/src/include/nodes/parsenodes.h
@@ -285,6 +285,11 @@ typedef struct CollateClause
* construct *must* be an aggregate call. Otherwise, it might be either an
* aggregate or some other kind of function. However, if OVER is present
* it had better be an aggregate or window function.
+ *
+ * Normally, you'd initialize this via makeFuncCall() and then only
+ * change the parts of the struct its defaults don't match afterwards
+ * if needed.
+ *
*/
typedef struct FuncCall
{