Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YfDjZ-0007l0-De for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Apr 2015 20:35:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YfDjY-0003jC-1y for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Apr 2015 20:35:00 +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 1YfDjW-0003j5-Ts for pgsql-hackers@postgresql.org; Mon, 06 Apr 2015 20:34:58 +0000 Received: from mout.gmx.net ([212.227.15.18]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YfDjS-0002R3-LF for pgsql-hackers@postgresql.org; Mon, 06 Apr 2015 20:34:57 +0000 Received: from auth1-smtp.messagingengine.com ([66.111.4.227]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0Lhwt0-1Z9JcH3nfO-00n6BE for ; Mon, 06 Apr 2015 22:34:52 +0200 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailauth.nyi.internal (Postfix) with ESMTP id B2767206BB for ; Mon, 6 Apr 2015 16:34:46 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Mon, 06 Apr 2015 16:34:50 -0400 X-Sasl-enc: 45kD6tFeucK6+McAPOi+zLylPn4eZHnWfnO6Glzvir4M 1428352490 Received: from [192.168.1.117] (unknown [204.145.120.11]) by mail.messagingengine.com (Postfix) with ESMTPA id 5510BC00020; Mon, 6 Apr 2015 16:34:50 -0400 (EDT) Message-ID: <5522EDE9.2050101@gmx.net> Date: Mon, 06 Apr 2015 16:34:49 -0400 From: Peter Eisentraut User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: David Steele , pgsql-hackers@postgresql.org Subject: Re: Auditing extension for PostgreSQL (Take 2) References: <54E005CC.1060605@pgmasters.net> In-Reply-To: <54E005CC.1060605@pgmasters.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:r2SIvHVSQJcMY1t8P17rG9BQ3l0y7E7kp/pqg34ngHEV3K78n4n 1XsMsPaLl+KtWXNkZDDg53wVO3rmi1UskvBEyuhrXnwDkCdrvSm/5U6mdAu0Eb3XyCHI8T0 TEIviJREktaxK9Y5mmIsRe3KKPuh8DtlS/Re8QM2On6Wy5TH4Iol34l9TKM6II8gT1CgViE iRElRWfdym3dk2X4wB/JQ== X-UI-Out-Filterresults: notjunk:1; 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 On 2/14/15 9:34 PM, David Steele wrote: > The patch I've attached satisfies the requirements that I've had from > customers in the past. What I'm missing is a more precise description/documentation of what those requirements might be. "Audit" is a "big word". It might imply regulatory or standards compliance on some level. We already have ways to log everything. If customers want "auditing" instead, they will hopefully have a precise requirements set, and we need a way to map that to a system configuration. I don't think "we need auditing" -> "oh there's this pg_audit thing, and it has a bunch of settings you can play with" is going to be enough of a workflow. For starters, I would consider the textual server log to be potentially lossy in many circumstances, so there would need to be additional information on how to configure that to be robust. (Also, more accurately, this is an "audit trail", not an "audit". An audit is an examination of a system, not a record of interactions with a system. An audit trail might be useful for an audit.) I see value in what you call object auditing, which is something you can't easily do at the moment. But what you call session auditing seems hardly distinct from statement logging. If we enhance log_statements a little bit, there will not be a need for an extra module to do almost the same thing. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers