Re: Postgres query completion status?

From: Greg Smith <greg(at)2ndquadrant(dot)com>
To: Richard Neill <rn214(at)hermes(dot)cam(dot)ac(dot)uk>
Cc: Richard Neill <rn214(at)cam(dot)ac(dot)uk>, Greg Williamson <gwilliamson39(at)yahoo(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Postgres query completion status?
Date: 2009-11-21 00:07:24
Message-ID: 4B072F3C.9060008@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Richard Neill wrote:
> Am I missing something though, or is this project dormant, without
> having released any files?

My bad--gave you the wrong url.
http://git.postgresql.org/gitweb?p=pg_top.git;a=summary has the project
I meant to point you toward.

> What I really want to know is, how far through that query has it got?
> (For example, if the query is an update, then surely it knows how many
> rows have been updated, and how many are yet to go).
I understand what you want. The reason you're not getting any
suggestions is because that just isn't exposed in PostgreSQL yet.
Clients ask for queries to be run, eventually they get rows of results
back, but there's no notion of how many they're going to get in advance
or how far along they are in executing the query's execution plan.
There's a couple of academic projects that have started exposing more of
the query internals, but I'm not aware of anyone who's even started
moving in the direction of what you'd need to produce a progress bar.

--
Greg Smith 2ndQuadrant Baltimore, MD
PostgreSQL Training, Services and Support
greg(at)2ndQuadrant(dot)com www.2ndQuadrant.com

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Greg Smith 2009-11-21 00:18:09 Re: Postgres query completion status?
Previous Message Richard Neill 2009-11-20 21:39:49 Re: Postgres query completion status?