pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris Hoover <revoohc@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: adey <adey11@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Any way to see what queries are currently running?
Date: Tue, 16 Aug 2005 13:36:19 -0400
Message-ID: <1d219a6f05081610363089c0fe@mail.gmail.com> (raw)
In-Reply-To: <23551.1124166917@sss.pgh.pa.us>
References: <1d219a6f05081513546f6458b6@mail.gmail.com>
	<1c66bda80508152107a29330e@mail.gmail.com>
	<23551.1124166917@sss.pgh.pa.us>

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@sss.pgh.pa.us> wrote:
> adey <adey11@gmail.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
>



view thread (6+ messages)

Message-ID: <1d219a6f05081610363089c0fe@mail.gmail.com>
Permalink:  ../1d219a6f05081610363089c0fe@mail.gmail.com/
Also on:    postgresql.org/message-id/1d219a6f05081610363089c0fe@mail.gmail.com

 · 

reply

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-admin@postgresql.org
  Cc: revoohc@gmail.com, tgl@sss.pgh.pa.us, adey11@gmail.com
  Subject: Re: Any way to see what queries are currently running?
  In-Reply-To: <1d219a6f05081610363089c0fe@mail.gmail.com>
  References: <1d219a6f05081513546f6458b6@mail.gmail.com> <1c66bda80508152107a29330e@mail.gmail.com> <23551.1124166917@sss.pgh.pa.us> <1d219a6f05081610363089c0fe@mail.gmail.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