Skip to content

Support for the cube type #698

Closed

Description

@roji

Originally requested in #696.

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.

Activity

  1. roji commented on Jan 8, 2017

    @roji
    MemberAuthor

    Closing for lack of interest, will reopen if requested.

  2. kirkbrauer commented on Jun 14, 2021

    @kirkbrauer
    Contributor

    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/

  3. reopened this on Jun 15, 2021
  4. roji commented on Jun 15, 2021

    @roji
    MemberAuthor

    Nice that this got binary recv/send, and thanks for posting the link!

  5. kirkbrauer commented on Jun 15, 2021

    @kirkbrauer
    Contributor

    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.

  6. added this to the 6.0.0 milestone on Jun 15, 2021
  7. roji commented on Jun 15, 2021

    @roji
    MemberAuthor

    @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.

  8. changed the title [-]Binary support for the cube contrib type[/-] [+]Support for the cube type[/+] on Aug 1, 2021
  9. roji commented on Oct 26, 2021

    @roji
    MemberAuthor

    @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!

  10. 1 remaining item

  11. added this to the 7.0.0 milestone on Oct 26, 2021
  12. kirkbrauer commented on Oct 26, 2021

    @kirkbrauer
    Contributor

    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.

  13. roji commented on Oct 26, 2021

    @roji
    MemberAuthor

    @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.

  14. kirkbrauer commented on Oct 26, 2021

    @kirkbrauer
    Contributor

    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.

  15. roji commented on Oct 26, 2021

    @roji
    MemberAuthor

    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.

  16. modified the milestones: 7.0.0, Backlog on Sep 11, 2022
  17. added theissue type on Jun 14, 2025
  18. modified the milestones: Backlog, 10.0.0 on Nov 3, 2025
  19. linked a pull request that will close this issueCube support #3867on Nov 3, 2025
  20. added a commit that references this issue on Nov 3, 2025
    9163444
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions