viewing large queries in pg_stat_activity

From: David Kerr <dmk(at)mr-paradox(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: viewing large queries in pg_stat_activity
Date: 2010-02-09 00:46:29
Message-ID: 20100209004629.GA96095@mr-paradox.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

It seems like pg_stat_activity truncates the current_query to about 1024 characters.

The field is a text, so i'm wondering if there is a way to see the full query?

(I know i can turn on log_statement=all, or log_min_duration_statement) but i'd like
something that doesn't require a restart.

Thanks

Dave

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2010-02-09 00:56:38 Re: vacuumdb ERROR: out of memory
Previous Message David Kerr 2010-02-09 00:41:11 vacuumdb ERROR: out of memory