Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XPsl3-0001HP-Aq for pgsql-bugs@arkaria.postgresql.org; Fri, 05 Sep 2014 12:36:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XPsl2-0007JD-MY for pgsql-bugs@arkaria.postgresql.org; Fri, 05 Sep 2014 12:36:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XPsl1-0007HX-LG for pgsql-bugs@postgresql.org; Fri, 05 Sep 2014 12:36:51 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XPsky-0005cF-1y for pgsql-bugs@postgresql.org; Fri, 05 Sep 2014 12:36:50 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 6074D5F7D7; Fri, 5 Sep 2014 08:36:47 -0400 (EDT) Date: Fri, 5 Sep 2014 08:36:47 -0400 From: Stephen Frost To: Amit Kapila Cc: katsumata.tomonari@po.ntts.co.jp, PostgreSQL Bugs Subject: Re: BUG #11350: ALTER SYSTEM is not DDL? Message-ID: <20140905123647.GO16422@tamriel.snowman.net> References: <20140904051356.2926.42797@wrigleys.postgresql.org> <20140904191456.GW16422@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cwPP66gEOXgkjun7" Content-Disposition: inline In-Reply-To: X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.11.0-19-generic (x86_64) X-Uptime: 08:33:56 up 149 days, 22:52, 10 users, load average: 0.10, 0.17, 0.14 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -3.6 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org --cwPP66gEOXgkjun7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Amit, * Amit Kapila (amit.kapila16@gmail.com) wrote: > On Fri, Sep 5, 2014 at 12:44 AM, Stephen Frost 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. >=20 > 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... >=20 > I think fix should be in explanation of log_statement, something like bel= ow: > 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 --cwPP66gEOXgkjun7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJUCa5fAAoJEO1sijiDR2RVaHMP/0k8D9d+Yf4GP88wXbEk/ASO 6kzMjv9DEpUy3AgKAiD/Hj+2c1MZIbttjD1oOR0x1VF+FC6/QWQ9nXJJ+hsMFjM9 X05ixqduD+K5A4Y8H0EDuWNbHr7yBQjksmOxXaHPYE9jvsQWoMdcJO43O5A8lnPj 6gGAx56SYLNawuggx5X7B/OWqZjoTgxIoDj756klhg6v41r322jaBtZ+epZEDKaN qa6lSIIuZk4tBd/jDVmrlghav3h5cVrzvq7acnx6EfLI4qDOIkkzO/NBYpJo8X9t G0DKMxoSX+VY7oDEDRnJwyZ3RAmm4h3C7hloygCWSAc3rd+/dyAwJaIcREja604U OjR8sXBfHEdhAYjhgZFIcbPCVF4Co0SmKR5WA8q8V52wyaW53ueWTB2BZhTwu+mf RCbRTRG0UCOSiaW1OEeYazUHZq1Z/uoLdG61Wx4fW2bdl08So/fxMSvPM1iX32P7 j22DaexZZ10gO3hjxcQLTe2jnTB16khQg864+MD3Yw2LpFp98hfnwHpyyDzK3lZ3 xF1ufbatXH4l3dzJGeInbDaGXNkJ+SK9myAWMX0Bpal7qIYnsKkJUq/7Ih//2PQZ LZzAAp5JqTVhE97xg7+Qtpm5FtlE7QZTaAc7Sia+LUR+BD82NUCUHq5E6rgYLL7g r6T+29ThWLdPT6Ejit7m =BE8E -----END PGP SIGNATURE----- --cwPP66gEOXgkjun7--