Replies: 1 comment 8 replies
-
Yes, you will have to migrate to a new table. Everything looks good there. You'll have to manually rename all the child tables. You can use some catalog querying techniques to generate all the rename statements. See this document for migrating to pg_partman for some examples - https://github.com/pgpartman/pg_partman/blob/development/doc/migrate_to_partman.md |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'd like to alter an existing table that is partitioned on update_time, by inserting a new column, insertion_time, and partitioning off of insertion_time. It looks like if I want to partition on a different column, I need to create a new table (please correct me if I'm wrong). So I
DROP TABLE IF EXISTS old_table CASCADE;
drop table old_template
However, my partitioned child tables do not rename. How do I rename the partitioned tables new_table_name_p2025_02, etc to old_table_name_p2025_02 via pg_partman?
Beta Was this translation helpful? Give feedback.
All reactions