pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Disallow CREATE STATISTICS on system catalogs 5+ messages / 1 participants [nested] [flat]
* pgsql: Disallow CREATE STATISTICS on system catalogs @ 2021-01-15 22:39 Tomas Vondra <tomas.vondra@postgresql.org> 0 siblings, 0 replies; 5+ messages in thread From: Tomas Vondra @ 2021-01-15 22:39 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Disallow CREATE STATISTICS on system catalogs Add a check that CREATE STATISTICS does not add extended statistics on system catalogs, similarly to indexes etc. It can be overriden using the allow_system_table_mods GUC. This bug exists since 7b504eb282c, adding the extended statistics, so backpatch all the way back to PostgreSQL 10. Author: Tomas Vondra Reported-by: Dean Rasheed Backpatch-through: 10 Discussion: https://postgr.es/m/CAEZATCXAPrrOKwEsyZKQ4uzzJQWBCt6QAvOcgqRGdWwT1zb%2BrQ%40mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/c9a0dc34865f2f82d8e186f534d9b605afaa4d11 Modified Files -------------- src/backend/commands/statscmds.c | 7 +++++++ src/test/regress/expected/stats_ext.out | 12 +++++++----- src/test/regress/sql/stats_ext.sql | 12 +++++++----- 3 files changed, 21 insertions(+), 10 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Disallow CREATE STATISTICS on system catalogs @ 2021-01-15 22:46 Tomas Vondra <tomas.vondra@postgresql.org> 0 siblings, 0 replies; 5+ messages in thread From: Tomas Vondra @ 2021-01-15 22:46 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Disallow CREATE STATISTICS on system catalogs Add a check that CREATE STATISTICS does not add extended statistics on system catalogs, similarly to indexes etc. It can be overriden using the allow_system_table_mods GUC. This bug exists since 7b504eb282c, adding the extended statistics, so backpatch all the way back to PostgreSQL 10. Author: Tomas Vondra Reported-by: Dean Rasheed Backpatch-through: 10 Discussion: https://postgr.es/m/CAEZATCXAPrrOKwEsyZKQ4uzzJQWBCt6QAvOcgqRGdWwT1zb%2BrQ%40mail.gmail.com Branch ------ REL_13_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/d26d4c717dbfb24cc9dfd83044b5c9a377dc954a Modified Files -------------- src/backend/commands/statscmds.c | 7 +++++++ src/test/regress/expected/stats_ext.out | 12 +++++++----- src/test/regress/sql/stats_ext.sql | 12 +++++++----- 3 files changed, 21 insertions(+), 10 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Disallow CREATE STATISTICS on system catalogs @ 2021-01-15 22:47 Tomas Vondra <tomas.vondra@postgresql.org> 0 siblings, 0 replies; 5+ messages in thread From: Tomas Vondra @ 2021-01-15 22:47 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Disallow CREATE STATISTICS on system catalogs Add a check that CREATE STATISTICS does not add extended statistics on system catalogs, similarly to indexes etc. It can be overriden using the allow_system_table_mods GUC. This bug exists since 7b504eb282c, adding the extended statistics, so backpatch all the way back to PostgreSQL 10. Author: Tomas Vondra Reported-by: Dean Rasheed Backpatch-through: 10 Discussion: https://postgr.es/m/CAEZATCXAPrrOKwEsyZKQ4uzzJQWBCt6QAvOcgqRGdWwT1zb%2BrQ%40mail.gmail.com Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/943a113bcb6fb913814ae32cbd4dd1ed29498750 Modified Files -------------- src/backend/commands/statscmds.c | 7 +++++++ src/test/regress/expected/stats_ext.out | 12 +++++++----- src/test/regress/sql/stats_ext.sql | 12 +++++++----- 3 files changed, 21 insertions(+), 10 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Disallow CREATE STATISTICS on system catalogs @ 2021-01-15 22:49 Tomas Vondra <tomas.vondra@postgresql.org> 0 siblings, 0 replies; 5+ messages in thread From: Tomas Vondra @ 2021-01-15 22:49 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Disallow CREATE STATISTICS on system catalogs Add a check that CREATE STATISTICS does not add extended statistics on system catalogs, similarly to indexes etc. It can be overriden using the allow_system_table_mods GUC. This bug exists since 7b504eb282c, adding the extended statistics, so backpatch all the way back to PostgreSQL 10. Author: Tomas Vondra Reported-by: Dean Rasheed Backpatch-through: 10 Discussion: https://postgr.es/m/CAEZATCXAPrrOKwEsyZKQ4uzzJQWBCt6QAvOcgqRGdWwT1zb%2BrQ%40mail.gmail.com Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/f52db969440bbbf6c9c46c9c98c1eb7a5619354f Modified Files -------------- src/backend/commands/statscmds.c | 8 ++++++++ src/test/regress/expected/stats_ext.out | 12 +++++++----- src/test/regress/sql/stats_ext.sql | 12 +++++++----- 3 files changed, 22 insertions(+), 10 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Disallow CREATE STATISTICS on system catalogs @ 2021-01-15 22:50 Tomas Vondra <tomas.vondra@postgresql.org> 0 siblings, 0 replies; 5+ messages in thread From: Tomas Vondra @ 2021-01-15 22:50 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Disallow CREATE STATISTICS on system catalogs Add a check that CREATE STATISTICS does not add extended statistics on system catalogs, similarly to indexes etc. It can be overriden using the allow_system_table_mods GUC. This bug exists since 7b504eb282c, adding the extended statistics, so backpatch all the way back to PostgreSQL 10. Author: Tomas Vondra Reported-by: Dean Rasheed Backpatch-through: 10 Discussion: https://postgr.es/m/CAEZATCXAPrrOKwEsyZKQ4uzzJQWBCt6QAvOcgqRGdWwT1zb%2BrQ%40mail.gmail.com Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/c22539756ee5492547badc821023e7fdf4bee4ef Modified Files -------------- src/backend/commands/statscmds.c | 8 ++++++++ src/test/regress/expected/stats_ext.out | 12 +++++++----- src/test/regress/sql/stats_ext.sql | 12 +++++++----- 3 files changed, 22 insertions(+), 10 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2021-01-15 22:50 UTC | newest] Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2021-01-15 22:39 pgsql: Disallow CREATE STATISTICS on system catalogs Tomas Vondra <tomas.vondra@postgresql.org> 2021-01-15 22:46 pgsql: Disallow CREATE STATISTICS on system catalogs Tomas Vondra <tomas.vondra@postgresql.org> 2021-01-15 22:47 pgsql: Disallow CREATE STATISTICS on system catalogs Tomas Vondra <tomas.vondra@postgresql.org> 2021-01-15 22:49 pgsql: Disallow CREATE STATISTICS on system catalogs Tomas Vondra <tomas.vondra@postgresql.org> 2021-01-15 22:50 pgsql: Disallow CREATE STATISTICS on system catalogs Tomas Vondra <tomas.vondra@postgresql.org>
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