pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: pg_dump: Fix inherited flag in extended stats from pre-v15 serve 2+ messages / 1 participants [nested] [flat]
* pgsql: pg_dump: Fix inherited flag in extended stats from pre-v15 serve @ 2026-11-11 01:39 Michael Paquier <michael@paquier.xyz> 0 siblings, 0 replies; 2+ messages in thread From: Michael Paquier @ 2026-11-11 01:39 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org pg_dump: Fix inherited flag in extended stats from pre-v15 servers Servers older than v15 have no stxdinherit in pg_statistic_ext_data, so pg_dump hardcoded it to false. However, these versions build inherited extended stats on partitioned tables since 20b9fa308eb. Once restored as non-inherited, the data was ignored by the planner. pg_upgrade from v10~v14 was impacted by this issue. For servers in this range, the inherited flag is now guessed from the relkind of the relation: true for partitioned tables and false otherwise, matching with what ANALYZE did before 269b532aef5 (introduction of pg_statistic_ext_data.stxdinherit). Oversight in c32fb29e979d. Author: Artem Gavrilov <artem.gavrilov@percona.com> Reviewed-by: Corey Huinker <corey.huinker@gmail.com> Reviewed-by: Michael Paquier <michael@paquier.xyz> Discussion: https://postgr.es/m/CAFPkQKxoB=kBdVsHXHvprV5j2OOBP5x5ea2yL9h0d3HtjuX+Sg@mail.gmail.com Backpatch-through: 19 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/35def3385998099f3e80e34f9d7bf6444af5bf1c Modified Files -------------- src/bin/pg_dump/pg_dump.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: pg_dump: Fix inherited flag in extended stats from pre-v15 serve @ 2026-11-11 01:39 Michael Paquier <michael@paquier.xyz> 0 siblings, 0 replies; 2+ messages in thread From: Michael Paquier @ 2026-11-11 01:39 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org pg_dump: Fix inherited flag in extended stats from pre-v15 servers Servers older than v15 have no stxdinherit in pg_statistic_ext_data, so pg_dump hardcoded it to false. However, these versions build inherited extended stats on partitioned tables since 20b9fa308eb. Once restored as non-inherited, the data was ignored by the planner. pg_upgrade from v10~v14 was impacted by this issue. For servers in this range, the inherited flag is now guessed from the relkind of the relation: true for partitioned tables and false otherwise, matching with what ANALYZE did before 269b532aef5 (introduction of pg_statistic_ext_data.stxdinherit). Oversight in c32fb29e979d. Author: Artem Gavrilov <artem.gavrilov@percona.com> Reviewed-by: Corey Huinker <corey.huinker@gmail.com> Reviewed-by: Michael Paquier <michael@paquier.xyz> Discussion: https://postgr.es/m/CAFPkQKxoB=kBdVsHXHvprV5j2OOBP5x5ea2yL9h0d3HtjuX+Sg@mail.gmail.com Backpatch-through: 19 Branch ------ REL_19_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/cec8cb198ad3233c0b378edad202b111359b0793 Modified Files -------------- src/bin/pg_dump/pg_dump.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2026-11-11 01:39 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2026-11-11 01:39 pgsql: pg_dump: Fix inherited flag in extended stats from pre-v15 serve Michael Paquier <michael@paquier.xyz> 2026-11-11 01:39 pgsql: pg_dump: Fix inherited flag in extended stats from pre-v15 serve Michael Paquier <michael@paquier.xyz>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox