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

Can partman inherit the same access method from template table? #571

Open
lij55 opened this issue Sep 14, 2023 · 5 comments
Open

Can partman inherit the same access method from template table? #571

lij55 opened this issue Sep 14, 2023 · 5 comments
Assignees
Milestone

Comments

@lij55
Copy link

lij55 commented Sep 14, 2023

Hi,

I need to create the partitions using another access method instead of heap. I set the access method when I create the template table but the partition created by partman is still heap:

Partition of: test FOR VALUES FROM ('2023-09-10 00:00:00') TO ('2023-09-11 00:00:00')
Partition constraint: ((create_time IS NOT NULL) AND (create_time >= '2023-09-10 00:00:00'::timestamp without time zone) AND (create_time < '2023-09-11 00:00:00'::timestamp without time zone))
Access method: heap

does partman support other access method? and how if so?
thanks!

@keithf4 keithf4 self-assigned this Sep 14, 2023
@keithf4 keithf4 added this to the 5.1 milestone Sep 14, 2023
@keithf4
Copy link
Collaborator

keithf4 commented Sep 14, 2023

It does not at this time, but if it's a catalog feature that can easily be looked up, I don't see why not. Will look into it or I'm happy to accept a PR.

@keithf4
Copy link
Collaborator

keithf4 commented Oct 2, 2023

What is the other access method you're looking to support? Would be good to test with one I know someone is looking to be supported.

@JerrySievert
Copy link

not OP, but in my case columnar

@lij55
Copy link
Author

lij55 commented Nov 27, 2023

the only official access method is help now. I have used columnar (https://github.com/citusdata/citus/tree/main/src/backend/columnar) as well. Besides, we might have some private access method, (memory, for example).

@keithf4
Copy link
Collaborator

keithf4 commented Mar 12, 2024

FYI there is an open issue for this in the current commit fest. Doesn't mean it will make it in the next release, but it does show recent activity in the discussion thread. If I have the time to see about adding this in via the template table I will, but since this seems to be actively being worked on for core, it's a little lower priority for me at the moment.

If you would like to see this in core sooner, please go help test in the commit fest!

https://commitfest.postgresql.org/47/3727/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants