In v14 (which is currently in beta), autoanalyze will process the partitioned table automatically: https://www.postgresql.org/docs/14/release-14.html |Autovacuum now analyzes partitioned tables (Yuzuko Hosoya, Álvaro Herrera) |Insert, update, and delete tuple counts from partitions are now propagated to their parent tables so autovacuum knows when to process them.
Thank you for the prompt reply! Changes in v14 sound promising. -- Best regards Kamil Frydel