Add indexes to partitions

When you develop some changes it may happen you need to add new indexes to all existing partitions of some parent table. It happened to me several times already. Therefore I put here this small pl/pgsql script which can help with it. Script creates indexes using...