From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Andrew Bartley <ambartley@gmail.com>
To: pgsql-general@postgresql.org
Subject: Re: Logging
Date: Wed, 13 Jun 2018 04:43:27 +0200
Message-ID: <1528857807.2657.3.camel@cybertec.at> (raw)
In-Reply-To: <CAA3RN+zZPxhZOd4NNpW==929pVy809hcbbjH-vk4hJbu_ch2zQ@mail.gmail.com>
References: <CAA3RN+zZPxhZOd4NNpW==929pVy809hcbbjH-vk4hJbu_ch2zQ@mail.gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: laurenz.albe@cybertec.at, ambartley@gmail.com
Subject: Re: Logging
In-Reply-To: <1528857807.2657.3.camel@cybertec.at>
References: <CAA3RN+zZPxhZOd4NNpW==929pVy809hcbbjH-vk4hJbu_ch2zQ@mail.gmail.com> <1528857807.2657.3.camel@cybertec.at>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox