Re: Partition boundary messed up

2024-07-27 Thread Lok P
Thank you. I understand that is going to take a lot of time as we already have billions of rows in the main table spread across 40+ partitions. Also this table is child to another parent partition table and so, it will take a lot of time to validate the FK constraint back for the new table. Is the

Re: Partition boundary messed up

2024-07-27 Thread yudhi s
If you were thinking of some ALTER command which will just alter the boundaries of the incorrect partition and make it correct , I don't think there exists any such. You may have to create a whole new table and run the partman.create_parent block with the UTC time zone set so that all the subseque

Partition boundary messed up

2024-07-24 Thread Lok P
Hello All, We normally operate on UTC timezone so we normally create partitions in UTC timezone so that each day partition starts from today's midnight UTC to next day's midnight UTC. The script looks something like below. And also that way reference partition tables are also created in a similar w