citus/src/backend/distributed
Marco Slot 7c0589abb8
Do not override combinefunc of custom aggregates with common names (#6805)
DESCRIPTION: Fix an issue that caused some queries with custom
aggregates to fail

While playing around with https://github.com/pgvector/pgvector I noticed
that the AVG query was broken. That's because we treat it as any other
AVG by breaking it down in SUM and COUNT, but there are no SUM/COUNT
functions in this case, but there is a perfectly usable combinefunc.
This PR changes our aggregate logic to prefer custom aggregates with a
combinefunc even if they have a common name.

Co-authored-by: Marco Slot <marco.slot@gmail.com>
2023-04-03 19:43:09 +02:00
..
cdc Make CDC decoder an independent extension (#6810) 2023-04-03 21:32:15 +05:30
clock Address the issues/comments from the original PR# 6315 2022-12-05 11:06:21 -08:00
commands Refactor executor utility functions into multiple files (#6593) 2023-03-31 13:07:48 +02:00
connection PR #6728  / commit - 12 2023-03-30 11:06:16 +03:00
deparser Identity column implementation refactorings (#6738) 2023-03-30 10:41:01 +03:00
executor Refactor executor utility functions into multiple files (#6593) 2023-03-31 13:07:48 +02:00
metadata Refactor executor utility functions into multiple files (#6593) 2023-03-31 13:07:48 +02:00
operations Refactor shard transfers (#6631) 2023-04-03 10:43:54 +03:00
planner Do not override combinefunc of custom aggregates with common names (#6805) 2023-04-03 19:43:09 +02:00
progress Add status column to get_rebalance_progress() (#6403) 2022-10-17 16:55:31 +03:00
relay Fixes ADD {PRIMARY KEY/UNIQUE} USING INDEX cmd (#6647) 2023-01-25 21:28:07 +03:00
replication Hide shards from CDC subscriptions 2023-03-29 00:59:12 +02:00
shardsplit Make CDC decoder an independent extension (#6810) 2023-04-03 21:32:15 +05:30
sql PR #6728  / commit - 10 2023-03-30 11:06:16 +03:00
test PR #6728  / commit - 12 2023-03-30 11:06:16 +03:00
transaction PR #6728  / commit - 11 2023-03-30 11:06:16 +03:00
utils PR #6728  / commit - 5 2023-03-30 10:53:22 +03:00
worker Identity column implementation refactorings (#6738) 2023-03-30 10:41:01 +03:00
.gitignore Change SQL migration build process for easier reviews (#2951) 2019-09-13 18:44:27 +02:00
Makefile Make CDC decoder an independent extension (#6810) 2023-04-03 21:32:15 +05:30
citus--11.1-1.control Support citus_columnar as separate extension (#5911) 2022-07-13 21:08:29 -07:00
citus.control Bump Citus to 11.3devel (#6690) 2023-02-06 10:23:25 +00:00
safeclib Compile safestringlib using regular configure 2020-03-19 11:52:20 +01:00
shared_library_init.c Make CDC decoder an independent extension (#6810) 2023-04-03 21:32:15 +05:30