We several tables which must inherit another table. The plan is to be able to perform queries between different tables using common attributes, but also perform queries on the parent table for analytical purposes. On top of this it might be necessary to edit the data in parent and child tables. The child tables already have all the necessary columns, and we have successfully inherited several of them.
Now we have an issue with a huge table partitioned by years and quarters (declarative partitioning):
[42809]: ERROR: cannot change inheritance of a partition.
The other option would be to use union, but without inheritance we would need to create editable views or something like that and change them each time we'll need another partitioned table... Or we might switch to inheritance only, just for compatibility reasons.
I already tried to inherit the partitions - doesn't work as well.
Any ideas?