On 12/02/2015 09:36 AM, David Kensiski
wrote:
Not sure if it applies in your case (large objects via bytea vs pg built in large objects). However, maybe you can partition the table as follows: 1) create a new master table 2) create the needed partitions 3) begin migrating in the background, as you migrate each partition, via a select * from current table, you will not be copying any dead rows 4) once all existing data is copied perform the following: a) declare outage b) copy remaining data c) rename or drop the old table d) rename the new master table to the old table name e) end outage |