pg_partman
pg_partman copied to clipboard
Run partition_data_proc in parallel
Hello. I have a table with 600 million rows (60 GB). partition_data_proc procedure took about 6 hours.
Is it possible to run this migration in parallel?
At this time, I'm not sure how this could be done. If anyone else has any ideas how to implement this through an extension, I'd appreciate the help.
Possible idea here... Allow the partition_data_proc to have start/end boundary parameters. If those are provided, do not set the advisory lock. Would not automatically do parallel data migration, but could possibly allow the user to call it multiple times.