Remove ATPrepSetStatistics
authorPeter Eisentraut <peter@eisentraut.org>
Wed, 11 Dec 2019 07:59:18 +0000 (08:59 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Wed, 11 Dec 2019 08:04:04 +0000 (09:04 +0100)
commit105eb360f2513523d221302b2d52880a14afae34
tree07df1dadd37a43c4ac4e55a27f38f615a787c04f
parentb802412106e82ccf1aef36a4984e321082c122cb
Remove ATPrepSetStatistics

It was once possible to do ALTER TABLE ... SET STATISTICS on system
tables without allow_sytem_table_mods.  This was changed apparently by
accident between PostgreSQL 9.1 and 9.2, but a code comment still
claimed this was possible.  Without that functionality, having a
separate ATPrepSetStatistics() is useless, so use the generic
ATSimplePermissions() instead and move the remaining custom code into
ATExecSetStatistics().

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://www.postgresql.org/message-id/flat/cc8d2648-a0ec-7a86-13e5-db473484e19e%402ndquadrant.com
src/backend/commands/tablecmds.c