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

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.

			regards, tom lane





view thread (5+ messages)  latest in thread

Message-ID: <8540.1575995032@sss.pgh.pa.us>
Permalink:  ../8540.1575995032@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/8540.1575995032@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, peter.eisentraut@2ndquadrant.com
  Subject: Re: about allow_system_table_mods and SET STATISTICS
  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>

* 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