partition_data_proc killed automatically after ~30 mins without transferring any data. #436
Replies: 1 comment 4 replies
-
You said you did the online partitioning method, I'm assuming you've added the original table a default. In this situation, data must be moved in a single transaction with the smallest amount of data being moved being the size of your interval. In this case, it must move however many rows are in a single month. It must lock those rows in order to move them since it has to move them from one table to another, so if anything is trying to use those rows, it could be holding up the transaction from completing. Nothing in pg_partman should be killing the process from running. You may have some other parameters set in PostgreSQL that kill long running transactions. Or something else in your environment could be doing so as well (network configurations). Also looking around at other possible causes of that error, are you trying to run the |
Beta Was this translation helpful? Give feedback.
-
I have a table with >500 million rows that I have partitioned monthly using the online partitioning method specified in the docs. When I ran
partition_data_proc
the first time, it copied some data and created 3 child tables as they had less rows and then it was killed.But now whenever I'm running it again, the proc call is just killed after ~20-30 mins without creating the new child table and transferring any data. Can I manually transfer data in batches? Any help would be appreciated
EDIT:
This is what I got in the exception message:
invalid transaction termination
Beta Was this translation helpful? Give feedback.
All reactions