Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 2AB46475458; Sun, 22 Sep 2002 21:52:07 -0400 (EDT) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by postgresql.org (Postfix) with ESMTP id 2E4C9475E26; Sun, 22 Sep 2002 21:52:05 -0400 (EDT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id g8N1ptW22413; Sun, 22 Sep 2002 21:51:55 -0400 (EDT) From: Bruce Momjian Message-Id: <200209230151.g8N1ptW22413@candle.pha.pa.us> Subject: Re: Monitoring a Query In-Reply-To: <87znuc5tdm.fsf@mailbox.samurai.com> To: Neil Conway Date: Sun, 22 Sep 2002 21:51:55 -0400 (EDT) Cc: Aaron Held , pgsql-sql@postgresql.org, pgsql-general@postgresql.org X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/984 X-Sequence-Number: 30565 Neil Conway wrote: > Bruce Momjian writes: > > Aaron Held wrote: > > > Is there any way to monitor a long running query? > > > > Oh, sorry, you want to know how far the query has progressed. Gee, I > > don't think there is any easy way to do that. > > Would it be a good idea to add the time that the current query began > execution at to pg_stat_activity? What do people think about this? It seems like a good idea to me. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073