From: Stephen Frost <sfrost@snowman.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Add pg_audit, an auditing extension
Date: Thu, 14 May 2015 15:21:35 -0400
Message-ID: <20150514192135.GK30322@tamriel.snowman.net> (raw)
In-Reply-To: <5043.1431621669@sss.pgh.pa.us>
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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
* Tom Lane (tgl@sss.pgh.pa.us) wrote:
> Stephen Frost <sfrost@snowman.net> 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.
>
> > 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.
>
> 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
Attachments:
signature.asc (application/pgp-signature, 818B) download
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-committers@postgresql.org
Cc: sfrost@snowman.net, tgl@sss.pgh.pa.us
Subject: Re: pgsql: Add pg_audit, an auditing extension
In-Reply-To: <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> <20150514192135.GK30322@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