pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joshua Marsh <icub3d@gmail.com>
To: Bucky Jordan <bjordan@lumeta.com>
Cc: Jeff Davis <pgsql@j-davis.com>
Cc: pgsql-performance@postgresql.org
Cc: jim@nasby.net
Cc: bujordan@gmail.com
Subject: Re: Query Progress (was: Performance With Joins on Large Tables)
Date: Wed, 13 Sep 2006 12:56:58 -0600
Message-ID: <38242de90609131156n6eb102f9p8c7a09d12264c942@mail.gmail.com> (raw)
In-Reply-To: <78ED28FACE63744386D68D8A9D1CF5D4104D08@MAIL.corp.lumeta.com>
References: <38242de90609130919k33208204ka1006ff0ca25f75b@mail.gmail.com>
	<78ED28FACE63744386D68D8A9D1CF5D4104D08@MAIL.corp.lumeta.com>

On 9/13/06, Bucky Jordan <bjordan@lumeta.com> wrote:
>
> Setting to 0.1 finally gave me the result I was looking for. I know
> that the index scan is faster though.  The seq scan never finished (i
> killed it after 24+ hours) and I'm running the query now with indexes
> and it's progressing nicely (will probably take 4 hours).
>
>
> In regards to "progressing nicely (will probably take 4 hours)" - is
> this just an estimate or is there some way to get progress status (or
> something similar- e.g. on step 6 of 20 planned steps) on a query in pg?
> I looked through Chap 24, Monitoring DB Activity, but most of that looks
> like aggregate stats. Trying to relate these to a particular query
> doesn't really seem feasible.
>
> This would be useful in the case where you have a couple of long running
> transactions or stored procedures doing analysis and you'd like to give
> the user some feedback where you're at.
>
> Thanks,
>
> Bucky
>

I do it programmatically, not through postgresql.  I'm using a cursor,
so I can keep track of how many records I've handled.  I'm not aware
of a way to do this in Postgresql.



view thread (2+ messages)

Message-ID: <38242de90609131156n6eb102f9p8c7a09d12264c942@mail.gmail.com>
Permalink:  ../38242de90609131156n6eb102f9p8c7a09d12264c942@mail.gmail.com/
Also on:    postgresql.org/message-id/38242de90609131156n6eb102f9p8c7a09d12264c942@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-performance@postgresql.org
  Cc: icub3d@gmail.com, bjordan@lumeta.com, pgsql@j-davis.com, jim@nasby.net, bujordan@gmail.com
  Subject: Re: Query Progress (was: Performance With Joins on Large Tables)
  In-Reply-To: <38242de90609131156n6eb102f9p8c7a09d12264c942@mail.gmail.com>
  References: <38242de90609130919k33208204ka1006ff0ca25f75b@mail.gmail.com> <78ED28FACE63744386D68D8A9D1CF5D4104D08@MAIL.corp.lumeta.com> <38242de90609131156n6eb102f9p8c7a09d12264c942@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