pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Amit Kapila <amit.kapila16@gmail.com>
Cc: katsumata.tomonari@po.ntts.co.jp
Cc: PostgreSQL Bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #11350: ALTER SYSTEM is not DDL?
Date: Fri, 5 Sep 2014 08:36:47 -0400
Message-ID: <20140905123647.GO16422@tamriel.snowman.net> (raw)
In-Reply-To: <CAA4eK1JfX-oQbXvDd03-b2Ex-maqJZOsdLgzDa91TOr8sH0w=Q@mail.gmail.com>
References: <20140904051356.2926.42797@wrigleys.postgresql.org>
	<CAA4eK1JOajg2Rt7pQyE7rq31e4ESzzCfcjHpG2LdGim-y9zB=g@mail.gmail.com>
	<20140904191456.GW16422@tamriel.snowman.net>
	<CAA4eK1JfX-oQbXvDd03-b2Ex-maqJZOsdLgzDa91TOr8sH0w=Q@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Amit,

* Amit Kapila (amit.kapila16@gmail.com) wrote:
> On Fri, Sep 5, 2014 at 12:44 AM, Stephen Frost <sfrost@snowman.net> wrote:
> > > Currently it is considered similar to SET statement as it performs
> > > similar operation except that the value for configuration gets set
> > > in configuration file.  Do you see any reason for it to be considered
> > > differently except that the command has ALTER keyword?
> >
> > Uh, it's nothing like SET as SET only affects the current session.
> 
> and Alter System affects at system level, both of these can't
> be considered as DDL, may be a separate category.

Perhaps something went wrong with your quoting, but the above doesn't
make sense to me.

> If we consider below types of statements, SET will fall into
> 4th category and Alter System will fall into 5th category, but
> none should be considered as DDL.

Based on the existing logging structure that we have and the existing
precedent, DDL is the right level for these kinds of statements.

> > It's much, much closer to ALTER ROLE, which correctly logs at the DDL
> > level.  This should be fixed, and before 9.4 goes out...
> 
> I think fix should be in explanation of log_statement, something like below:
> ddl logs all data definition statements, such as CREATE, ALTER
> (except ALTER SYSTEM), and DROP statements

No.  ALTER SYSTEM should be logged at the 'ddl' level and not the 'all'.
I'm fine with improving the documentation, but saying we shouldn't log
ALTER SYSTEM changes at 'ddl' is wrong.

	Thanks,

		Stephen

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (13+ messages)  latest in thread

Message-ID: <20140905123647.GO16422@tamriel.snowman.net>
Permalink:  ../20140905123647.GO16422@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20140905123647.GO16422@tamriel.snowman.net

 · 

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-bugs@postgresql.org
  Cc: sfrost@snowman.net, amit.kapila16@gmail.com, katsumata.tomonari@po.ntts.co.jp
  Subject: Re: BUG #11350: ALTER SYSTEM is not DDL?
  In-Reply-To: <20140905123647.GO16422@tamriel.snowman.net>
  References: <20140904051356.2926.42797@wrigleys.postgresql.org> <CAA4eK1JOajg2Rt7pQyE7rq31e4ESzzCfcjHpG2LdGim-y9zB=g@mail.gmail.com> <20140904191456.GW16422@tamriel.snowman.net> <CAA4eK1JfX-oQbXvDd03-b2Ex-maqJZOsdLgzDa91TOr8sH0w=Q@mail.gmail.com> <20140905123647.GO16422@tamriel.snowman.net>

* 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