pgsql: Remove ATPrepSetStatistics - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Remove ATPrepSetStatistics
Date
Msg-id E1iexB9-0006Yx-7p@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/105eb360f2513523d221302b2d52880a14afae34

Modified Files
--------------
src/backend/commands/tablecmds.c | 53 +++++++++-------------------------------
1 file changed, 12 insertions(+), 41 deletions(-)


pgsql-committers by date:

Previous
From: Dor Ben Dov
Date:
Subject: PostgreSQL HA & FO
Next
From: Tom Lane
Date:
Subject: pgsql: Use only one thread to handle incoming signals on Windows.