Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id EA95C476462; Mon, 23 Sep 2002 11:06:34 -0400 (EDT) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by postgresql.org (Postfix) with ESMTP id F0164476461; Mon, 23 Sep 2002 11:06:32 -0400 (EDT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id g8NF6JP13779; Mon, 23 Sep 2002 11:06:19 -0400 (EDT) From: Bruce Momjian Message-Id: <200209231506.g8NF6JP13779@candle.pha.pa.us> Subject: Re: [SQL] Monitoring a Query In-Reply-To: <21724.1032793386@sss.pgh.pa.us> To: Tom Lane Date: Mon, 23 Sep 2002 11:06:19 -0400 (EDT) Cc: Aaron Held , Roberto Mello , Neil Conway , 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/1001 X-Sequence-Number: 30582 Tom Lane wrote: > Bruce Momjian writes: > > OK, added to TODO: > > * Add start time to pg_stat_activity > > It would be nearly free to include the start time of the current > transaction, because we already save that for use by now(). Is > that good enough, or do we need start time of the current query? Current query, I am afraid. We could optimize it so single-query transactions wouldn't need to call that again. -- 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