Re: Any way to see what queries are currently running?

From: Chris Hoover <revoohc(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: adey <adey11(at)gmail(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: Any way to see what queries are currently running?
Date: 2005-08-16 17:36:19
Message-ID: 1d219a6f05081610363089c0fe@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Ok, I was able to log the postgres.log and I found the entire query.
I am very sorry for causing this confusion. The way the query was
being submitted made it look like it was being cut off, and our daily
log files are multi-gig so mining them is quite a pain. (Also, I was
quite under the weather yesterday).

Anyway, it good to know there are some possible options besides always
mining the logs.

Thanks,

Chris

On 8/16/05, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> adey <adey11(at)gmail(dot)com> writes:
> > You could try the following query after enabling the
> > stats_command_string parameter in the postgresql.conf file:-
>
> The pg_stat_activity mechanism *does* have a limit on the query
> string length it can display, and if memory serves that limit was
> not large in 7.3.* --- I'm thinking 256 bytes.
>
> However, the postmaster log doesn't have any hard limit that I'm
> aware of, so it seems like Chris' original approach should work.
>
> regards, tom lane
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Chris Hoover 2005-08-16 20:24:37 Is there anyway to create a functional index using to_date?
Previous Message Alvaro Herrera 2005-08-16 16:29:24 Re: Restore from pg_dumpall