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

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)  latest in thread

Message-ID: <23551.1124166917@sss.pgh.pa.us>
Permalink:  ../23551.1124166917@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/23551.1124166917@sss.pgh.pa.us

 · 

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

* 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