Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YswER-0006bW-UN for pgsql-committers@arkaria.postgresql.org; Thu, 14 May 2015 16:43:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YswER-0008WR-FJ for pgsql-committers@arkaria.postgresql.org; Thu, 14 May 2015 16:43:35 +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 1YswEQ-0008WH-Q4 for pgsql-committers@postgresql.org; Thu, 14 May 2015 16:43:34 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1YswEN-0002SL-MP for pgsql-committers@postgresql.org; Thu, 14 May 2015 16:43:34 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 103555F7AB; Thu, 14 May 2015 12:43:31 -0400 (EDT) Date: Thu, 14 May 2015 12:43:30 -0400 From: Stephen Frost To: Tom Lane Cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Add pg_audit, an auditing extension Message-ID: <20150514164330.GD30322@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="RugjrgA7+qJrb9H/" 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: 12:41:32 up 55 days, 22:30, 10 users, load average: 0.26, 0.16, 0.15 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 --RugjrgA7+qJrb9H/ 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. Unfortunately, neither of those reset the role GUCs which are set with ALTER ROLE. > > I'm at least somewhat suspicious it has to do with loading the library, > > since we (pretty clearly..) didn't test that much as it's not really > > intended. >=20 > There are several more crashes in the BF now. They're not at initial > library load AFAICS. Hard to tell if it's platform-specific or just > randomly fails sometimes. Have you tried valgrind to see if there's > uninitialized-memory touches? Will give that a shot and see what it says. Thanks! Stephen --RugjrgA7+qJrb9H/ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJVVNCyAAoJEO1sijiDR2RV+1wP/R2dvxOxh4zKUuCo9PFV9/9t UPJUfZdR3VYK8r6gt8nkTVT1EuyEumixfukqLSI4G7YSOjDOHkMaLhe+QRDyZ0TY EikLJKKzjzMKTuuWtgX+jxzUhl5n9wxGNPN1kZ5JK+C0qOl770sXkIt5jvluHvOq QzqvaKOMEqL3QWlIzjFf/S23ko9pKBDjD9E85k3K7tjE+gr3I0nCXrCmFdPCdaqD j68UXqshgg0im4cy0ooYO0SfD8ecAzLTbFi9qCPIBCk43EFo1Nr7u3koOCtCdyCC 2YYGbpJmtkzN7SD0EHe81h8nQaAb4OnGdSPNsMoPOrPIL2RgVKWgO0fObplzY9sQ XH3xM8jMQNW9lY54O4dOHb0MKGSd35GAPTCP5y2UC2AgHL/MOwVFY5kN9EBf151o uXLlzHx0WvwUfHvwZ9hoAIL0VyUO3RrT2mBQELV0DyYwkR0j2SJ4jOhiKsKTVshU pcC7cjFPXYP0Ue525OTbhnLPe5jiKyZxMRZWYrnQPN1j9ndEf/dbp6CWtEjCuQf+ SaaIgl+yB+Iqf/Ga9djuptGlccRfmlhAPiXySK7Dmsl4z2InK8HEYv8wiEyBl1uO UCI5/fe8vz4zIWLWBHbkewAYzHcnSIEh4fMn/xxm97DDj6X8m2QIWBlteUdCluoz QPI5Y224qTC+3HBK6gzq =5S+7 -----END PGP SIGNATURE----- --RugjrgA7+qJrb9H/--