Received: from pegasus.mail.eclipse.net.uk (pegasus.mail.eclipse.net.uk [212.104.129.225]) by postgresql.org (Postfix) with ESMTP id 57F33475979; Fri, 19 Jul 2002 08:53:15 -0400 (EDT) Received: from marden1 (213-152-39-113.dsl.eclipse.net.uk [213.152.39.113]) by pegasus.mail.eclipse.net.uk (Postfix) with SMTP id 55CBB5007F; Fri, 19 Jul 2002 13:55:34 +0100 (BST) Message-ID: <004301c22f23$23178520$8d00000a@marden1> From: "Andy Marden" To: Cc: , References: <62064.203.196.129.235.1027082798.squirrel@mail.trade-india.com> Subject: Re: Long update progress Date: Fri, 19 Jul 2002 13:52:27 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 X-Archive-Number: 200207/287 X-Sequence-Number: 4971 The trouble is, the update's running at the moment - it's actually a cursor with the updtae running for each selected row in the cursor. If it's a case of running it again, I'll put a commit every 'n' in there so that we see things. What I need to be able to gauge is what has happened in the procedure so far. Alternatively, if I could force it to abort, but commit what it's done so far externally, then that would be fine too. ----- Original Message ----- From: To: Cc: ; Sent: Friday, July 19, 2002 1:46 PM Subject: Re: [ADMIN] Long update progress > > 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/ > >