Re: viewing large queries in pg_stat_activity

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: David Kerr <dmk(at)mr-paradox(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: viewing large queries in pg_stat_activity
Date: 2010-02-09 17:27:34
Message-ID: dcc563d11002090927w24b0f2e6ie85125b43c7d67fd@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Feb 8, 2010 at 5:46 PM, David Kerr <dmk(at)mr-paradox(dot)net> wrote:
> 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.

FYI, log_statement doesn't require a restart, just a reload. In fact
you can turn it on for just one db or user if you want with alter
database / alter user.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2010-02-09 17:28:50 Re: SSL connection lost after long-lasting copy command
Previous Message Alvaro Herrera 2010-02-09 17:18:01 Re: SSL connection lost after long-lasting copy command