pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: mallah@trade-india.com
To: amarden@usa.net
Cc: pgsql-admin@postgresql.org
Cc: pgsql-general@postgresql.org
Subject: Re: Long update progress
Date: Fri, 19 Jul 2002 18:16:38 +0530 (IST)
Message-ID: <62064.203.196.129.235.1027082798.squirrel@mail.trade-india.com> (raw)
In-Reply-To: <ah90s2$1k2f$1@news.hub.org>
References: <ah90s2$1k2f$1@news.hub.org>


create a sequence and somehow involve it in a dummy manner in the update...

do a select  current_val('sequence') to see how far updates have gone...

can we see the update stmt?

regds
mallah.


> We have an database batch update process running. It runs normally and
> takes around 6 hours. This is dealing with a much larger data set after
> an error correction. It's been running for 6 days now and people are
> getting twitchy that it might not finish. Is there any way (accepting
> that more preparation would, in retrospect, have been better) to tell
> how far we're got. This iterates round a cursor and updates individual
> rows. The trouble is it commits once at the end.
>
> The ideal would be to find a way of doing a dirty read against the
> table that is bing updated. Then we'd know how many rows had been
> processed.
>
> Any ideas?
>
> Cheers
>
> Andy
>
>
>
> ---------------------------(end of
> broadcast)--------------------------- TIP 5: Have you checked our
> extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html



-----------------------------------------
Get your free web based email at trade-india.com.
   "India's Leading B2B eMarketplace.!"
http://www.trade-india.com/





view thread (4+ messages)  latest in thread

Message-ID: <62064.203.196.129.235.1027082798.squirrel@mail.trade-india.com>
Permalink:  ../62064.203.196.129.235.1027082798.squirrel@mail.trade-india.com/
Also on:    postgresql.org/message-id/62064.203.196.129.235.1027082798.squirrel@mail.trade-india.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-admin@postgresql.org
  Cc: mallah@trade-india.com, amarden@usa.net, pgsql-general@postgresql.org
  Subject: Re: Long update progress
  In-Reply-To: <62064.203.196.129.235.1027082798.squirrel@mail.trade-india.com>
  References: <ah90s2$1k2f$1@news.hub.org> <62064.203.196.129.235.1027082798.squirrel@mail.trade-india.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