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 1hsoAp-0006jU-CD for pgsql-general@arkaria.postgresql.org; Wed, 31 Jul 2019 12:57:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hsoAo-0008Tj-66 for pgsql-general@arkaria.postgresql.org; Wed, 31 Jul 2019 12:57:42 +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 1hsoAn-0008Tb-T9 for pgsql-general@lists.postgresql.org; Wed, 31 Jul 2019 12:57:41 +0000 Received: from mail-lj1-x22f.google.com ([2a00:1450:4864:20::22f]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hsoAl-0001Lo-7v for pgsql-general@postgresql.org; Wed, 31 Jul 2019 12:57:41 +0000 Received: by mail-lj1-x22f.google.com with SMTP id m23so65422980lje.12 for ; Wed, 31 Jul 2019 05:57:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=8EtNzm5GY+xSHbgupuW3r9Qko3MNyWYWEUVRaIXLzMg=; b=Dc4gpVG9OizRzUDqyVYXrdFR5XFw5xnU3ljRXlOHAPjFXG2D6LKwUSIQGTFO0Bgsnr DU1lEJjMNFthv3Ffl6Y80kdRk/84KwDyZeLxr5DzMB6eZja9emYHgZJ/Hyx+yoGAqir1 /sSCZk7bzmMZtSMbnjL2NQTzx9I95K/2nfcr8etjlqr1BAhguPqa5PD8JijKOwdAOXXJ iKIrQWE3taG12Tq3JD/a/wFdFpIyF8R8ls4FHRk+ZjxHyjSblx0o6OFzC5jzf3kLQ7yC d52ECOl6+Hw8EVTTbWyNiy5KoxB6hVGk6ALyXIZzyxMZV/3TD2SSEtg1kJT2rSj8c4RQ HdJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=8EtNzm5GY+xSHbgupuW3r9Qko3MNyWYWEUVRaIXLzMg=; b=CQ+pdyeM3nfnikp4HPp/vzpQi8hO6iy1BxLMFebFIi8p0IFFb3N8HwebaO1XnhPiTE YzT74mQT22lg3qM6SUbHaXCzxoRHHdBoQUjAdZGTYbUl3kjIrqELLLD0jwYE9L/nACOY MdmEB+9Csi3ksBB0hpD4TkZujD127CIfukSdxut2+izOzf5UGmow6bJvcNOlkmtouuvH QwDnx+dM5roYdxWfuQsO9iRbc/jAflYbWprIQcufTEx/LkZA94WUFtqNhNBHpPPOWdic RwgDqo7SuW4iDhVexn/joHb9i3ZbU33fOZBGbU6Npa1nTZxtiTlpcDyuN+CMAueNU0J9 2GeA== X-Gm-Message-State: APjAAAXhrZvy4OTMO71XFhQaWNMmGxm7aQfT2ySuDw4B+ZWE0HwIOJPC rUP3ySPyrL+W63E4Bk6BLp6JfTt6+LA= X-Google-Smtp-Source: APXvYqxN9vKG8A9sJ8w3kFF3u3SLrHyt2fsO3bCO4KCorSTOtGBYCG0KPsIlYhhQI71jJQPR33Nv0w== X-Received: by 2002:a2e:9dca:: with SMTP id x10mr63389705ljj.17.1564577856230; Wed, 31 Jul 2019 05:57:36 -0700 (PDT) Received: from [192.168.27.237] ([93.174.131.141]) by smtp.gmail.com with ESMTPSA id c30sm11803166lfp.70.2019.07.31.05.57.34 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Wed, 31 Jul 2019 05:57:35 -0700 (PDT) Subject: Re: pgaudit.log_parameter To: Luca Ferrari , pgsql-general References: From: Artur Zakirov Message-ID: Date: Wed, 31 Jul 2019 15:57:34 +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 -- Artur