how can I get non-truncated version of running sql?

From: Julie Nishimura <juliezain(at)hotmail(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>, "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: how can I get non-truncated version of running sql?
Date: 2019-10-11 17:23:05
Message-ID: BYAPR08MB50143AD05A6257499AB3EEA6AC970@BYAPR08MB5014.namprd08.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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!

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2019-10-11 17:25:13 Re: how can I get non-truncated version of running sql?
Previous Message Vijaykumar Jain 2019-10-11 16:43:12 Profile a db connection time?