Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YqNc1-0004LP-QP for pgsql-hackers@arkaria.postgresql.org; Thu, 07 May 2015 15:21:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YqNc1-0004y9-AP for pgsql-hackers@arkaria.postgresql.org; Thu, 07 May 2015 15:21:21 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YqNc0-0004y3-Cc for pgsql-hackers@postgresql.org; Thu, 07 May 2015 15:21:20 +0000 Received: from linode.thelabyrinth.net ([2600:3c00::f03c:91ff:fe69:8d76] helo=mail.thelabyrinth.net) by makus.postgresql.org with esmtps (TLS1.1:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1YqNbw-0006Sc-MC; Thu, 07 May 2015 15:21:18 +0000 Received: from theseus.local (unknown [208.98.198.217]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: dsteele) by mail.thelabyrinth.net (Postfix) with ESMTPSA id 78C4F12F97; Thu, 7 May 2015 15:21:14 +0000 (UTC) Message-ID: <554B82E9.1040408@pgmasters.net> Date: Thu, 07 May 2015 09:21:13 -0600 From: David Steele User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Stephen Frost , Peter Eisentraut CC: Fujii Masao , Sawada Masahiko , Simon Riggs , Tatsuo Ishii , PostgreSQL-development , Abhijit Menon-Sen Subject: Re: Auditing extension for PostgreSQL (Take 2) References: <553938A1.7030707@pgmasters.net> <553FA477.5010803@pgmasters.net> <55443ED1.6070003@gmx.net> <20150504190035.GO30322@tamriel.snowman.net> <5548095A.1040900@gmx.net> <20150505003719.GQ30322@tamriel.snowman.net> <5549172B.70005@gmx.net> <20150507142655.GW30322@tamriel.snowman.net> In-Reply-To: <20150507142655.GW30322@tamriel.snowman.net> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="tdAKFKU3ONcgwW4Dju43vpdmVF2nk0UnM" X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --tdAKFKU3ONcgwW4Dju43vpdmVF2nk0UnM Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 5/7/15 8:26 AM, Stephen Frost wrote: > * Peter Eisentraut (peter_e@gmx.net) wrote: >> On 5/4/15 8:37 PM, Stephen Frost wrote: >>> I don't follow this logic. The concerns raised above are about chang= ing >>> our in-core logging. We haven't got in-core auditing and so I don't = see >>> how they apply to it. >> >> How is session "auditing" substantially different from statement loggi= ng? >=20 > David had previously outlined the technical differences between the > statement logging we have today and what pgAudit does, but I gather > you're asking about it definitionally, though it ends up amounting to > much the same to me. Auditing is about "what happened" whereas > statement logging is "log whatever statement the user sent." pgAudit > bears this out by logging internal SQL statements and object > information, unlike what we do with statement logging today. That's a great way to describe it and I'll see if I can incorporate this idea into the docs to hopefully make the topic a bit clearer. >> I think it is not, and we could tweak the logging facilities a bit to >> satisfy the audit trail case while making often-requested enhancement = to >> the traditional logging use case as well at the same time. >=20 > Changing our existing statement logging to be a "what happened" auditin= g > system is possible, but I don't see it as a "tweak." Agreed - not the least of which would be figuring out a more detailed statement classification system for core which would probably be the first step. > Lastly, from the perspective of the session logging piece, the code > footprint for that in pgAudit isn't the bulk or even terribly > significant, most of the code would still be required for the object > auditing capability. Both have a decent footprint but also a lot in common so it's fair to say that removing session audit logging would not reduce the amount of code significantly. --=20 - David Steele david@pgmasters.net --tdAKFKU3ONcgwW4Dju43vpdmVF2nk0UnM Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJVS4LpAAoJEIA2uIJQ5SFAVQQP/jV1Clikz65kGAqsw5aReENz SGtmpMUfrP6p1UCV4aFDU+ecmG5R23cseEmouVsTL9dSIyTaG/nSfgCE99nj9ZQM CabiQ68IfIaaUu9FASGjWMLQKvpmU8IzhFBNe7x+bMtrACAk4BVfNa++QlXaUn9i bf4stybLrWiqcDnJai0QSeS+otf0nLCYwrWxpBQoYu2yUkv0hIp5gUJBNjZ01Htv 2ZTkPpd3Byt3mlEUceJ7FRX8yf8/tjovYLyGNnYb3kUS9pZrZt7p/pUbefKQlEyU 64wAJQBfTVWXxcQySUaulQiBQrEkfJrUZWNovSkHiQ95LD94RVSo21/3BeYtbswP N9xdflr9OXds+VSCZASjASKRaTmJwdui29lOcS4xOzpoDSgj0XN/Lkzlpc5Qu/nx 5oe1f8O7DDbAuIlayKFAMJTkwz5D6Xuid7JE8HcUfdGK6g4uSmL49BcZHT3IpOqh CLg6AJeUoRRY6ibG+xXue2iSVqeDpAzNrefQDtk1vPrOVWbBSobMBxtSvawgsx+Z 13q4CrOclF+eN6bI8PusGagrHALTjrYWxeSZsY9Q60CYaDEM26eSdCZv1AeLnjkQ +HpxxQI+Qmp3fDni1q4NsMZ1e5ABBQibqpfjsbXXtaDd5J2k4Ofk1yyqtyAnhvK7 sHUD175RWxjKMoKIInaq =9yCC -----END PGP SIGNATURE----- --tdAKFKU3ONcgwW4Dju43vpdmVF2nk0UnM--