pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: about allow_system_table_mods and SET STATISTICS
Date: Wed, 11 Dec 2019 09:17:27 +0100
Message-ID: <1fcff6c7-93f3-f16e-9594-bd2dd7b9fccb@2ndquadrant.com> (raw)
In-Reply-To: <8540.1575995032@sss.pgh.pa.us>
References: <cc8d2648-a0ec-7a86-13e5-db473484e19e@2ndquadrant.com>
	<6375.1575501374@sss.pgh.pa.us>
	<dfdb11ce-ddc7-0d7c-0b9f-4ec78eff3388@2ndquadrant.com>
	<8540.1575995032@sss.pgh.pa.us>

On 2019-12-10 17:23, Tom Lane wrote:
> Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:
>> Good point.  Done in the attached patch.
>> (If someone wanted to revive the original functionality, it would
>> nowadays probably be easier to add a flag ATT_SYSTEM_TABLE to
>> ATSimplePermissions(), so there is really no reason to keep the old
>> function separate.)
> 
> Yeah --- that way, the behavior would also be conveniently available
> to other ALTER TABLE subcommands.
> 
> This patch looks good, with one trivial nitpick: it looks a bit odd
> to insert the relkind check into ATExecSetStatistics between the
> assignment of "newtarget" and the validity check for same.  I'd
> put it either before or after that whole stanza.  Just a cosmetic
> thing though.

Committed that way.  Thanks.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services





view thread (5+ messages)

Message-ID: <1fcff6c7-93f3-f16e-9594-bd2dd7b9fccb@2ndquadrant.com>
Permalink:  ../1fcff6c7-93f3-f16e-9594-bd2dd7b9fccb@2ndquadrant.com/
Also on:    postgresql.org/message-id/1fcff6c7-93f3-f16e-9594-bd2dd7b9fccb@2ndquadrant.com

 · 

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-hackers@postgresql.org
  Cc: peter.eisentraut@2ndquadrant.com, tgl@sss.pgh.pa.us
  Subject: Re: about allow_system_table_mods and SET STATISTICS
  In-Reply-To: <1fcff6c7-93f3-f16e-9594-bd2dd7b9fccb@2ndquadrant.com>
  References: <cc8d2648-a0ec-7a86-13e5-db473484e19e@2ndquadrant.com> <6375.1575501374@sss.pgh.pa.us> <dfdb11ce-ddc7-0d7c-0b9f-4ec78eff3388@2ndquadrant.com> <8540.1575995032@sss.pgh.pa.us> <1fcff6c7-93f3-f16e-9594-bd2dd7b9fccb@2ndquadrant.com>

* 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