Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YsyhQ-0004pI-9T for pgsql-committers@arkaria.postgresql.org; Thu, 14 May 2015 19:21:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YsyhP-0004ll-PW for pgsql-committers@arkaria.postgresql.org; Thu, 14 May 2015 19:21:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YsyhO-0004le-QP for pgsql-committers@postgresql.org; Thu, 14 May 2015 19:21:38 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1YsyhM-0005az-38 for pgsql-committers@postgresql.org; Thu, 14 May 2015 19:21:38 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 8C2665F7AB; Thu, 14 May 2015 15:21:35 -0400 (EDT) Date: Thu, 14 May 2015 15:21:35 -0400 From: Stephen Frost To: Tom Lane Cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Add pg_audit, an auditing extension Message-ID: <20150514192135.GK30322@tamriel.snowman.net> References: <20150514144833.GW30322@tamriel.snowman.net> <20267.1431615541@sss.pgh.pa.us> <20150514150047.GX30322@tamriel.snowman.net> <20458.1431615970@sss.pgh.pa.us> <20150514154619.GY30322@tamriel.snowman.net> <21368.1431618712@sss.pgh.pa.us> <20150514161032.GA30322@tamriel.snowman.net> <4844.1431621244@sss.pgh.pa.us> <20150514163551.GB30322@tamriel.snowman.net> <5043.1431621669@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="VgRE/DMiFGGqn84U" Content-Disposition: inline In-Reply-To: <5043.1431621669@sss.pgh.pa.us> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-46-generic (x86_64) X-Uptime: 15:17:29 up 56 days, 1:06, 10 users, load average: 0.21, 0.21, 0.21 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org --VgRE/DMiFGGqn84U Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Tom Lane (tgl@sss.pgh.pa.us) wrote: > Stephen Frost writes: > > * Tom Lane (tgl@sss.pgh.pa.us) wrote: > >> Quite aside from any security risks, that means that running "make > >> installcheck" twice in a row fails. Please fix. >=20 > > Right, will do, though one kind of requires the other (we can't drop the > > only user we know how to connect as which is a superuser...). I'll > > figure out a way to make it work though. >=20 > Instead of physically reconnecting, could you do SET ROLE or SET SESSION > AUTHORIZATION? I think that's what we do in the core tests. Alright, I believe this has been fixed now, using the brand-new \gset option. Two installcheck's in a row still breaks though.. I'm not quite sure what to do about that but I'm certainly open to thoughts. I can reset the role attributes later, but those get logged with the username used too in the ALTER statement, which changes. I'll continue to think about it though, perhaps there's a way I can disable logging as the superuser without it logging the role involved. Thanks! Stephen --VgRE/DMiFGGqn84U Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJVVPW/AAoJEO1sijiDR2RVPiIP/R3PoRBznQqOKKwIO5Ckvg2E mC3ZLyG4Al8EPyQ0AXK9nWWeKnSe2UMThz/3UuWH2Cj6FQnVuE8G1WvgPBz7nEIH W3UvdcG5HQ+2+L/SfAzGDvRmUbMxGwTkBQCtQvFYKj8OU34aiEncV2XqCJUVBUsZ jfPpNpynpyhjj0o24brxUOJt/+thwM5gRd91HM0iek2VVAMTl5FcPBSIzPDWevci 167v1fPjPXW+p2Pzg6H6cR8EV/EjkGdf10ZEGmvzhu6QYLOoVyV0bkP8AyQFXqrQ ZB+CMr029WaZMfekVoOz7TTktCFq4sAAWDTNmSJi1SMmKXegyLMStBz/J+s50E7C /PrymhHGYomHb4V8+gNaVcWs4ubeoOpw4njeUnlZblmHlEeKV5ySUp2gD85wSxCU 9iLrR2ZmkssdPKmWDDUa1mxI3PGVEZFVv8/TBcuL44JQCQIGw0aW9Jt1P8M3Oor0 LpWRMCJInkEqY0uV0DqzEJPk2gCFWtjnomN5HJquJt72w0oL2PxL1cyBdEVN5jZA SK7N6j7/r4UJ/d3QTqoKQEc6h2bBbSkhZ5hUi4L9+bxHu113xYF7c6mUZxZDnP+L qhlTixKYTO6gDthF7DYDqy/Xd8BjOEjSwaaqj/8F7vhgxNQ4lsON0R3/D5IQRGFS LkAsgA62CwYmDpw4hg8d =dNt3 -----END PGP SIGNATURE----- --VgRE/DMiFGGqn84U--