Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gAxZ5-0001NI-Ui for pgsql-general@arkaria.postgresql.org; Fri, 12 Oct 2018 13:33:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gAxZ1-0005Jk-2f for pgsql-general@arkaria.postgresql.org; Fri, 12 Oct 2018 13:33:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gAxZ0-0005Jd-R9 for pgsql-general@lists.postgresql.org; Fri, 12 Oct 2018 13:33:10 +0000 Received: from mail.thelabyrinth.net ([45.56.70.56]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gAxYy-0005gi-4n for pgsql-general@postgresql.org; Fri, 12 Oct 2018 13:33:10 +0000 Received: from Davids-MacBook.local (unknown [196.196.232.5]) (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 A3E5A5466B; Fri, 12 Oct 2018 13:33:04 +0000 (UTC) Subject: Re: Advice on logging strategy To: Mike Martin , pgsql-general@postgresql.org References: From: David Steele Message-ID: <5017eca2-e579-36bb-4878-725878ceaeac@pgmasters.net> Date: Fri, 12 Oct 2018 14:33:01 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 10/11/18 11:26 AM, Mike Martin wrote: > > This results in enormous log files which take ages to import using copy > becuase each execute statement is logged with the parameters chosen > > Is there any way around this? > > I cant find any way to filter dml statements pgAudit (https://github.com/pgaudit/pgaudit) gives you fine-grain control over what is logged by command type, table, or user as well as a lot more detail. -- -David david@pgmasters.net