Re: tracking scripts... - Mailing list pgsql-general

From Merlin Moncure
Subject Re: tracking scripts...
Date
Msg-id CAHyXU0ysUPWVS1s6N5zY=u2Lst4-FNs-RwcKRN1DPF_=NVmUBQ@mail.gmail.com
Whole thread Raw
In response to tracking scripts...  (Joey Quinn <bjquinniii@gmail.com>)
Responses Re: tracking scripts...  (John R Pierce <pierce@hogranch.com>)
Re: tracking scripts...  (Raymond O'Donnell <rod@iol.ie>)
List pgsql-general
On Tue, Nov 26, 2013 at 9:28 AM, Joey Quinn <bjquinniii@gmail.com> wrote:
> I have a fairly large table (4.3 billion rows) that I am running an update
> script on (a bit over 127 thousand individual update queries). I am using
> the gui. It has been running for about 24 hours now. Is there any good way
> to gauge progress (as in, how many of the individual update queries have
> finished)?


There are not many ways to Hand off information outside of the
database while a transaction Is running. one way Is to write a Simple
trigger in plpgsql that 'raise'es A notice every 'n' times trigger
condition fires.  that'S Essentially the only Clean way to do it in
such a way that the information is Returned to the Executing console.
Thanks!

merlin


pgsql-general by date:

Previous
From: Shaun Thomas
Date:
Subject: Re: Re: corruption issue after server crash - ERROR: unexpected chunk number 0
Next
From: John R Pierce
Date:
Subject: Re: Any advantage of using SSL with a certificate of authority?