Skip to content

Citus Scaling Custom Aggregation #7642

Answered by JelteF
Luuya920 asked this question in Q&A
Discussion options

You must be logged in to vote

Currently we special case certain aggregates in Citus to do partial aggregation on the workers and combine it on the coordinator. To to this in a generic way for custom/extension aggregates we need something like the solutions proposed in this thread: https://www.postgresql.org/message-id/flat/TY2PR01MB3835CB1D110362A3213E5F6795D22%40TY2PR01MB3835.jpnprd01.prod.outlook.com#0e0884b5eee22ae527ca29ffe79fcbf0

If you have thoughts on this please chime in there.

Also, what's special about your avg aggregate? Based on the name I assume it is faster than the one built into postgres? If so, it would probably be a good candidate to upstream to regular Postgres.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Luuya920
Comment options

Answer selected by Luuya920
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants