pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove ATPrepSetStatistics
Date: Wed, 11 Dec 2019 08:17:03 +0000
Message-ID: <E1iexB9-0006Yx-7p@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1iexB9-0006Yx-7p@gemulon.postgresql.org>
Permalink:  ../E1iexB9-0006Yx-7p@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1iexB9-0006Yx-7p@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org
  Subject: Re: pgsql: Remove ATPrepSetStatistics
  In-Reply-To: <E1iexB9-0006Yx-7p@gemulon.postgresql.org>
  References: <E1iexB9-0006Yx-7p@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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