From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Truncated queries in the pg_log file
Date: Thu, 1 Nov 2018 15:06:08 -0500
Message-ID: <d7843602-80c3-a2a7-6c6b-890dca7ef225@gmail.com> (raw)
Hi,
v8.4 (we're migrating to 9.6 tomorrow night, but the work must still
proceed today.)
SQL statements are being logged (which is good), but only the fist 400 or so
bytes is recorded. What knob do I tweak to record the whole query?
Here are the relevant postgres.conf items which are not commented out:
log_destination = 'stderr'
logging_collector = on
log_directory = 'pg_log'
log_filename = 'postgresql-%F.log'
log_rotation_age = 1d
silent_mode = off
client_min_messages = notice
log_min_messages = notice
log_min_error_statement = notice
log_min_duration_statement = 5000
log_checkpoints = on
log_line_prefix = '%m %d %r %u %p %x %i'
log_lock_waits = on
log_statement = 'mod'
log_temp_files = 1kB
track_activity_query_size = 10240
Thanks
--
Angular momentum makes the world go 'round.
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: ronljohnsonjr@gmail.com
Subject: Re: Truncated queries in the pg_log file
In-Reply-To: <d7843602-80c3-a2a7-6c6b-890dca7ef225@gmail.com>
References: <d7843602-80c3-a2a7-6c6b-890dca7ef225@gmail.com>
* 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