-
- Downloads
Restructure representation of aggregate functions so that they have pg_proc
entries, per pghackers discussion. This fixes aggregates to live in namespaces, and also simplifies/speeds up lookup in parse_func.c. Also, add a 'proimplicit' flag to pg_proc that controls whether a type coercion function may be invoked implicitly, or only explicitly. The current settings of these flags are more permissive than I would like, but we will need to debate and refine the behavior; for now, I avoided breaking regression tests as much as I could.
Showing
- doc/src/sgml/catalogs.sgml 35 additions, 42 deletionsdoc/src/sgml/catalogs.sgml
- doc/src/sgml/ref/create_aggregate.sgml 4 additions, 3 deletionsdoc/src/sgml/ref/create_aggregate.sgml
- doc/src/sgml/ref/create_function.sgml 63 additions, 3 deletionsdoc/src/sgml/ref/create_function.sgml
- src/backend/catalog/aclchk.c 2 additions, 28 deletionssrc/backend/catalog/aclchk.c
- src/backend/catalog/heap.c 2 additions, 2 deletionssrc/backend/catalog/heap.c
- src/backend/catalog/indexing.c 2 additions, 2 deletionssrc/backend/catalog/indexing.c
- src/backend/catalog/pg_aggregate.c 41 additions, 85 deletionssrc/backend/catalog/pg_aggregate.c
- src/backend/catalog/pg_proc.c 26 additions, 43 deletionssrc/backend/catalog/pg_proc.c
- src/backend/commands/comment.c 5 additions, 20 deletionssrc/backend/commands/comment.c
- src/backend/commands/define.c 78 additions, 13 deletionssrc/backend/commands/define.c
- src/backend/commands/indexcmds.c 4 additions, 2 deletionssrc/backend/commands/indexcmds.c
- src/backend/commands/remove.c 40 additions, 14 deletionssrc/backend/commands/remove.c
- src/backend/executor/nodeAgg.c 77 additions, 20 deletionssrc/backend/executor/nodeAgg.c
- src/backend/nodes/copyfuncs.c 2 additions, 6 deletionssrc/backend/nodes/copyfuncs.c
- src/backend/nodes/equalfuncs.c 2 additions, 4 deletionssrc/backend/nodes/equalfuncs.c
- src/backend/nodes/outfuncs.c 3 additions, 5 deletionssrc/backend/nodes/outfuncs.c
- src/backend/nodes/readfuncs.c 4 additions, 8 deletionssrc/backend/nodes/readfuncs.c
- src/backend/optimizer/util/var.c 3 additions, 3 deletionssrc/backend/optimizer/util/var.c
- src/backend/parser/parse_agg.c 3 additions, 77 deletionssrc/backend/parser/parse_agg.c
- src/backend/parser/parse_coerce.c 45 additions, 29 deletionssrc/backend/parser/parse_coerce.c
Loading
Please register or sign in to comment