Is there any doc for migration to partman for native partitioning #524
Replies: 3 comments 4 replies
-
That document is for migrating an existing non-native partition set to partman. I have a working document to migrate an existing, native partition set to pg_partman in the works here. https://github.com/pgpartman/pg_partman/blob/5.0.0-beta/doc/migrate_to_partman.md As long as it's already natively partitioned, there's no need to copy/move the data to a new table. Please let me know if this works for you. |
Beta Was this translation helpful? Give feedback.
-
Just a note that that document is specifically for 5.0.0. There is a change in the child table suffix naming pattern, so please be aware of that if you are trying to use this with 4.x. |
Beta Was this translation helpful? Give feedback.
-
Thank you @keithf4 for specifying the version .We are currently using 4.6.2. We are currently stuck in a situation (human negligence ) where in order to migrate an existing native partition set to partman . partman partitioning was implemented on the same table instead of creating a new/separate table .Now we have a situation where both native partitions and partitions created by partman exist in same table . In order to match the child table suffix naming pattern we renamed the originally native partitions to have the name similar to those of partman. Along with constraints and indexes. Now when we execute the Any suggestion / solution you would have for this? |
Beta Was this translation helpful? Give feedback.
-
https://github.com/pgpartman/pg_partman/blob/master/doc/migration_to_partman.md
"This document is an aid for migrating an existing partitioned table set to using pg_partman. Please note that at this time, this guide is only for non-native, trigger-baed partitioning. Documentation for native partitioning is in the works, but it will be mostly focused on PostgreSQL 11 since 10 was very limited in its partitioning support. For now, the easiest way to migrate to a natively partitioned table is to create a brand new table and copy/move the data."
As stated above for natively partitioned table is to create a brand new table and copy/move the data. have we found a new way to do it ?
Beta Was this translation helpful? Give feedback.
All reactions