Received: from news.hub.org (news.hub.org [64.49.215.80]) by postgresql.org (Postfix) with ESMTP id 9BDD3475C80; Fri, 19 Jul 2002 08:32:07 -0400 (EDT) Received: by news.hub.org (Postfix, from userid 8) id 9EB11381927; Fri, 19 Jul 2002 08:32:03 -0400 (EDT) From: "Andy Marden" X-Newsgroups: comp.databases.postgresql.general, comp.databases.postgresql.admin Subject: Long update progress Date: Fri, 19 Jul 2002 13:31:52 +0100 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 18 Message-ID: X-Complaints-To: news@hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 To: pgsql-admin@postgresql.org, pgsql-general@postgresql.org X-Archive-Number: 200207/285 X-Sequence-Number: 4969 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