You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PostgreSQL contrib module cube contains the cube type for representing multidimensional cubes.
Unfortunately the module doesn't provide binary in/out functions, so these have to be added first and merged in PostgreSQL. Then, an Npgsql type handler can be created.
Hello, we are interested in using the cube type for RGB color queries within our database, but I found that Npgsql doesn't support it yet due to the lack of binary in/out.
It appears that the cube contrib type will support binary in/out in the upcoming PostgreSQL 14 release. Hopefully, this can be leveraged to bring full cube support to Npgsql.
My pleasure! I don't know about your release schedule or when you're planning on adding PG 14 support, but it would be awesome if this could be a part of v6 since the release of PosgreSQL and EF Core 6 will be around the same time.
I'd be happy to contribute once I get my hands on the PG 14 Beta.
@kirkbrauer I'd love this to be part of the v6 release - we're definitely adding other PG 14 features (around multiple host support, replication...). We can start with support here in Npgsql, and if that's done, implement things are the EF Core 6 level too.
PG 14 already has a beta out, so it should be very easy to try this out. I've assigned you to this issue for now, let me know how it goes.
@kirkbrauer I'm really sorry, but we've ended up too close to the 6.0.0 release (in two weeks) and there's too much else going on... As there are still some design questions, I'll think we'll have to punt this out to 7.0.0.
Once things quiet down again I promise to pick up the discussion again!
Thank you @roji, no worries, I should have been more diligent, but work got in the way was usual. Good luck with the v6 release, I'm looking forward to using it in my upcoming projects.
@kirkbrauer I don't think this had anything to do with you diligence, it's more lack of time on our side to properly review and decide on the direction...
BTW on thought is that in the meantime this could easily be done as a plugin (much like we already have the NodaTime and NetTopologySuite ones). This could allow playing around with the API shape etc., and then be fully integrated into the 7.0.0 release etc.
That's a great idea, I'll look into it if we end up needing this use case earlier, that would also give us a bit of time to nail down the implementation before deciding if it should be in the core or not.
Yeah, exactly. I definitely think this could go in the core - we generally support PG types (and standard extensions) in most cases, except where a third-party package is required (e.g. NodaTime), since we don't want to push an unneeded dependency onto the user. But that wouldn't be the case here, since we'd be providing the cube type anyway.
Also, whatever implementation you do in a plugin would be usable pretty much as-is in the core, so no work gets lost if we do this.
Activity
roji commentedon Jan 8, 2017
Closing for lack of interest, will reopen if requested.
kirkbrauer commentedon Jun 14, 2021
Hello, we are interested in using the cube type for RGB color queries within our database, but I found that Npgsql doesn't support it yet due to the lack of binary in/out.
It appears that the cube contrib type will support binary in/out in the upcoming PostgreSQL 14 release. Hopefully, this can be leveraged to bring full cube support to Npgsql.
Here is a link to the Commitfest for the patch https://commitfest.postgresql.org/32/3004/
roji commentedon Jun 15, 2021
Nice that this got binary recv/send, and thanks for posting the link!
kirkbrauer commentedon Jun 15, 2021
My pleasure! I don't know about your release schedule or when you're planning on adding PG 14 support, but it would be awesome if this could be a part of v6 since the release of PosgreSQL and EF Core 6 will be around the same time.
I'd be happy to contribute once I get my hands on the PG 14 Beta.
roji commentedon Jun 15, 2021
@kirkbrauer I'd love this to be part of the v6 release - we're definitely adding other PG 14 features (around multiple host support, replication...). We can start with support here in Npgsql, and if that's done, implement things are the EF Core 6 level too.
PG 14 already has a beta out, so it should be very easy to try this out. I've assigned you to this issue for now, let me know how it goes.
[-]Binary support for the cube contrib type[/-][+]Support for the cube type[/+]roji commentedon Oct 26, 2021
@kirkbrauer I'm really sorry, but we've ended up too close to the 6.0.0 release (in two weeks) and there's too much else going on... As there are still some design questions, I'll think we'll have to punt this out to 7.0.0.
Once things quiet down again I promise to pick up the discussion again!
1 remaining item
kirkbrauer commentedon Oct 26, 2021
Thank you @roji, no worries, I should have been more diligent, but work got in the way was usual. Good luck with the v6 release, I'm looking forward to using it in my upcoming projects.
roji commentedon Oct 26, 2021
@kirkbrauer I don't think this had anything to do with you diligence, it's more lack of time on our side to properly review and decide on the direction...
BTW on thought is that in the meantime this could easily be done as a plugin (much like we already have the NodaTime and NetTopologySuite ones). This could allow playing around with the API shape etc., and then be fully integrated into the 7.0.0 release etc.
kirkbrauer commentedon Oct 26, 2021
That's a great idea, I'll look into it if we end up needing this use case earlier, that would also give us a bit of time to nail down the implementation before deciding if it should be in the core or not.
roji commentedon Oct 26, 2021
Yeah, exactly. I definitely think this could go in the core - we generally support PG types (and standard extensions) in most cases, except where a third-party package is required (e.g. NodaTime), since we don't want to push an unneeded dependency onto the user. But that wouldn't be the case here, since we'd be providing the cube type anyway.
Also, whatever implementation you do in a plugin would be usable pretty much as-is in the core, so no work gets lost if we do this.
Cube support (npgsql#3867)