-
|
While upgrading a Postgres 9.6 instance hosted by Heroku to Postgres 10, we accidentally dropped the It appears that partitioning is partially working. The trigger to insert data into pre-made tables (daily tables) still exists and works for now - it will presumably stop working once we exhaust the pre-made tables. However, the partition is no longer recognized and the What is the best path forward for us to fix partitioning? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
|
There's nothing technically tying the partitioned table to any specific entry in the config table other than a matching parent table name. Would recommend testing this out first, but I'm pretty sure this should work. |
Beta Was this translation helpful? Give feedback.
There's nothing technically tying the partitioned table to any specific entry in the config table other than a matching parent table name.
So you just need to get the same configuration entered back into the
part_configtable that it had before. If you know all the settings you used for thecreate_parent()call for these tables, you could just create another partitioned table with a different name but the same config. Then either insert another row with the same values but with the oldparent_tablevalue, or you could maybe even just update the row for the new table to have the old table's name.Would recommend testing this out first, but I'm pretty sure this should work.