Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hsoBq-0006lm-OZ for pgsql-general@arkaria.postgresql.org; Wed, 31 Jul 2019 12:58:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hsoBp-0003X4-8N for pgsql-general@arkaria.postgresql.org; Wed, 31 Jul 2019 12:58:45 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1hsoBo-0003Wx-Q6 for pgsql-general@lists.postgresql.org; Wed, 31 Jul 2019 12:58:45 +0000 Received: from cyclops.postgrespro.ru ([93.174.131.138] helo=mail.postgrespro.ru) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hsoBm-0001Mt-7q for pgsql-general@postgresql.org; Wed, 31 Jul 2019 12:58:44 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id 1245921C46F9; Wed, 31 Jul 2019 15:58:26 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at postgrespro.ru X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=x tagged_above=-99 required=4 WHITELISTED tests=[] autolearn=unavailable Received: from [192.168.27.237] (gw.postgrespro.ru [93.174.131.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mail.postgrespro.ru (Postfix) with ESMTPSA id D121821C4150; Wed, 31 Jul 2019 15:58:15 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1564577905; bh=9agHKYoajwqeGH04EhiLCRrecuMcizn3UzuGhhseoNM=; h=Subject:To:References:From:Date:In-Reply-To; b=KNMF555kQx5xyUHQTHgu2hzer3SEetsBo202A8uKdOJV/HQHlszC86oTH1YgOp7k8 jDkuKSsT+0pXxmBwcMFJPS9+gc8qAQj353TZkJPKM6oVD0rOMEmtTLSxXafr3qC7OE 4YW0VHU7SgjgiyVzByglxJl9xwm1cdePMpcHvViw= Subject: Re: pgaudit.log_parameter To: Luca Ferrari , pgsql-general References: From: Arthur Zakirov Message-ID: <824ca351-a4ff-6bb1-a534-9435e4f9a7a9@postgrespro.ru> Date: Wed, 31 Jul 2019 15:58:15 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 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 Hello, On 31.07.2019 14:21, Luca Ferrari wrote: > Hello, > I'm a little confused about the setting pgaudit.log_parameter of the > pgaudit extension > (https://github.com/pgaudit/pgaudit/blob/master/README.md). > What's the purpose of this? AN example of query that will trigger such > parameter logging? Apparently I cannot get it providing me more > information than ''. pgaudit.log_parameter allows to log parameters of prepared statements. See the documentation: https://www.postgresql.org/docs/current/sql-prepare.html The following example logs parameters if pgaudit.log_parameter is on: EXECUTE fooplan(1, 'Hunter Valley', 't', 200.00); It should log parameters: 1, 'Hunter Valley', 't', 200.00 -- Arthur Zakirov Postgres Professional: http://www.postgrespro.com Russian Postgres Company