Redesign API presented by nodeAgg.c for ordered-set and similar aggregates. The previous design exposed the input and output ExprContexts of the Agg plan node, but work on grouping sets has suggested that we'll regret doing that. Instead provide more narrowly-defined APIs that can be implemented in multiple ways, namely a way to get a short-term memory context and a way to register an aggregate shutdown callback. Back-patch to 9.4 where the bad APIs were introduced, since we don't want third-party code using these APIs and then having to change in 9.5. Andrew Gierth Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/6f5034eda05c4946b65858fb8831d069f2873083 Modified Files -------------- src/backend/executor/nodeAgg.c | 38 +++++++++++++++++++++----------- src/backend/utils/adt/orderedsetaggs.c | 16 ++++---------- src/include/fmgr.h | 8 ++++--- 3 files changed, 34 insertions(+), 28 deletions(-)
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера