Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support PostgreSQL-specific aggregate functions (7.0) #727

Closed
6 tasks done
schmitch opened this issue Nov 29, 2018 · 5 comments
Closed
6 tasks done

Support PostgreSQL-specific aggregate functions (7.0) #727

schmitch opened this issue Nov 29, 2018 · 5 comments
Assignees
Labels
Milestone

Comments

@schmitch
Copy link

schmitch commented Nov 29, 2018

Hello, I'm not sure if it is possible, but it would be great if Npgsql would support more Aggregate Functions, especially when using Group By queries.

Currently only a few of the list at: https://www.postgresql.org/docs/current/functions-aggregate.html are support.
However it would be good if others like bool_and or bool_or will be supported.

I'm not sure if it is even possible since I didn't see custom pgsql only aggregate functions (yet), also it might be troublesome to work with IGrouping<anon type, anon type>.

Work:

@roji roji changed the title More Pgsql Aggregate Functions Support PostgreSQL-specific aggregate functions Nov 29, 2018
@roji roji added the enhancement New feature or request label Nov 29, 2018
@roji roji added this to the 3.0.0 milestone Nov 29, 2018
@roji
Copy link
Member

roji commented Nov 29, 2018

We haven't yet looked into supporting PostgreSQL-specific aggregate functions - hopefully the EF Core infrastructure makes that possible. Let's examine this for 3.0.

@austindrenski
Copy link
Contributor

Definitely interested in these along with #532. I believe it's currently feasible, but was nontrivial when I scoped it a few months ago.

@roji roji modified the milestones: 3.0.0, Backlog Aug 12, 2019
@roji
Copy link
Member

roji commented May 8, 2021

ST_AsMVT is a PostGIS aggregate function requested here: #457 (comment)

@roji roji added the blocked label May 8, 2021
@roji
Copy link
Member

roji commented May 8, 2021

Issue tracking the necessary EF Core infrastructure changes: dotnet/efcore#22957

@roji roji modified the milestones: Backlog, 7.0.0 Jun 4, 2022
@roji roji self-assigned this Jun 4, 2022
@roji roji removed the blocked label Jun 4, 2022
roji added a commit to roji/efcore.pg that referenced this issue Jun 4, 2022
Takes care of the built-in aggregates only for now (Min/Max/etc.)

Part of npgsql#727
@roji
Copy link
Member

roji commented Jun 4, 2022

Infrastructure for custom aggregates implemented in #2393; this is the counterpart to dotnet/efcore#28092 on the EF Core side.

roji added a commit that referenced this issue Jun 4, 2022
Takes care of the built-in aggregates only for now (Min/Max/etc.)

Part of #727
@roji roji added epic and removed enhancement New feature or request labels Jun 4, 2022
@roji roji linked a pull request Jun 4, 2022 that will close this issue
@roji roji changed the title Support PostgreSQL-specific aggregate functions Support PostgreSQL-specific aggregate functions (7.0) Oct 15, 2022
@roji roji closed this as completed Oct 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants