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 1fSvlD-0007TV-VD for pgsql-general@arkaria.postgresql.org; Wed, 13 Jun 2018 02:43:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fSvlB-0000Mo-Ix for pgsql-general@arkaria.postgresql.org; Wed, 13 Jun 2018 02:43: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_SHA384:256) (Exim 4.89) (envelope-from ) id 1fSvlB-0000Me-Ak for pgsql-general@lists.postgresql.org; Wed, 13 Jun 2018 02:43:45 +0000 Received: from mx1.mailbox.org ([80.241.60.212]) by magus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fSvl3-0000DG-GY for pgsql-general@postgresql.org; Wed, 13 Jun 2018 02:43:44 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 4B98C443FE; Wed, 13 Jun 2018 04:43:35 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id oK-_NLn27vkH; Wed, 13 Jun 2018 04:43:34 +0200 (CEST) Message-ID: <1528857807.2657.3.camel@cybertec.at> Subject: Re: Logging From: Laurenz Albe To: Andrew Bartley , pgsql-general@postgresql.org Date: Wed, 13 Jun 2018 04:43:27 +0200 In-Reply-To: References: Organization: Cybertec Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andrew Bartley wrote: > Can someone please tell me how to log the values being inserted in this example.. > > 2018-06-12 22:31:49 UTC-5b2049d4.434ac-STATEMENT: insert into "api_consumers" ("consumer_id", "create_datetime") values ($1, $2). > > I have tried many different logging options and combinations. That should automatically be logged as a DETAIL message. log_min_duration_statement = 0 log_min_error_statement = log or better log_min_messages = log or better That should do the trick. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com