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

Postgres: If you have subpartitions of a table, it generates types for each subpartition table, not the parent table. #76

Closed
saddiqs1 opened this issue May 22, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@saddiqs1
Copy link

saddiqs1 commented May 22, 2023

Imagine the following schema:

info

column type
id SERIAL PRIMARY KEY
name TEXT

I have multiple partitions of this table, e.g. info_1, info_2 ...

When I generate the types, I expect to get the types of info since I query directly on info, however I get types generated for info_1 and info_2. In this example this is not an issue, however in my application I have over 200+ partitions, and I want to query on the parent table for it to allow postgres to handle which partition it targets.

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
@RobinBlomberg RobinBlomberg added the bug Something isn't working label May 26, 2023
@RobinBlomberg
Copy link
Owner

Hey! I would like to thank whoever funded this issue, and I will make sure to look at this as soon as possible. I have not really worked with subpartitions in Postgres, so I will have to do some experimentation, and also determine if this is a kysely or kysely-codegen issue. Stay tuned!

@RobinBlomberg RobinBlomberg added the in progress We're working on it label Aug 15, 2024
@RobinBlomberg
Copy link
Owner

Should be released in kysely-codegen@0.16.0! 🚀

@RobinBlomberg RobinBlomberg removed the in progress We're working on it label Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants