From: Julie Nishimura <juliezain@hotmail.com>
To: pgsql-general <pgsql-general@postgresql.org>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: how can I get non-truncated version of running sql?
Date: Fri, 11 Oct 2019 17:23:05 +0000
Message-ID: <BYAPR08MB50143AD05A6257499AB3EEA6AC970@BYAPR08MB5014.namprd08.prod.outlook.com> (raw)
How do i find the FULL query running on a postgres instance? When I run:
SELECT datname, pid, state, query, age(clock_timestamp(), query_start) AS age
FROM pg_stat_activity
WHERE state <> 'idle'
AND query NOT LIKE '% FROM pg_stat_activity %'
ORDER BY age;
query seems to be truncated
Thanks!
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: juliezain@hotmail.com
Subject: Re: how can I get non-truncated version of running sql?
In-Reply-To: <BYAPR08MB50143AD05A6257499AB3EEA6AC970@BYAPR08MB5014.namprd08.prod.outlook.com>
References: <BYAPR08MB50143AD05A6257499AB3EEA6AC970@BYAPR08MB5014.namprd08.prod.outlook.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