New comment. This func/column things has always confused me.

Bruce Momjian <bruce@momjian.us>

Commit: 5ec847432362d905e71fedd1182cdd3bb10b3120
Author: Bruce Momjian <bruce@momjian.us>
Date: 2001-05-19T00:33:20Z
Releases: 7.2.1
New comment.  This func/column things has always confused me.

/*
 *  parse function
 *  This code is confusing because the database can accept
 *  relation.column, column.function, or relation.column.function.
 *  In these cases, funcname is the last parameter, and fargs are
 *  the rest.
 *
 *  It can also be called as func(col) or func(col,col).
 *  In this case, Funcname is the part before parens, and fargs
 *  are the part in parens.
 *
 */
Node *
ParseFuncOrColumn(ParseState *pstate, char *funcname, List *fargs,
                  bool agg_star, bool agg_distinct,
                  int precedence)

Files

PathChange+/−
src/backend/parser/parse_expr.c modified +4 −4
src/backend/parser/parse_func.c modified +13 −9
src/include/parser/parse_func.h modified +2 −2