* Convenience function to build dummy argument expressions for aggregates. * * We really only care that an aggregate support function can discover its * actual argument types at runtime using get_fn_expr_argtype(), so it's okay * to use Param nodes that don't correspond to any real Param. */
| 2225 | * to use Param nodes that don't correspond to any real Param. |
| 2226 | */ |
| 2227 | static Node * |
| 2228 | make_agg_arg(Oid argtype, Oid argcollation) |
| 2229 | { |
| 2230 | Param *argp = makeNode(Param); |
| 2231 | |
| 2232 | argp->paramkind = PARAM_EXEC; |
| 2233 | argp->paramid = -1; |
| 2234 | argp->paramtype = argtype; |
| 2235 | argp->paramtypmod = -1; |
| 2236 | argp->paramcollid = argcollation; |
| 2237 | argp->location = -1; |
| 2238 | return (Node *) argp; |
| 2239 | } |
no outgoing calls
no test coverage detected