Re: Long running update - Mailing list pgsql-general

From Tom Lane
Subject Re: Long running update
Date
Msg-id 3167.1123805428@sss.pgh.pa.us
Whole thread Raw
In response to Long running update  (Akash Garg <akash.garg@gmail.com>)
List pgsql-general
Akash Garg <akash.garg@gmail.com> writes:
> I currently running an update statement that updates every row in a
> very large table.  This query will obviously take a long time to run.
> My question -- is there any way to know how much time it will take
> once it starts?  Even something that could help me approximate the
> speed at which it's doing the update would be helpful.

If it's doing a seqscan then strace'ing the backend and noting which
blocks it's reading would give you a good hint.  If it's an indexscan
there's probably no very easy way to tell ...

            regards, tom lane

pgsql-general by date:

Previous
From: Roman Neuhauser
Date:
Subject: Re: plphp: PHP Warning: Call-time pass-by-reference has been deprecated
Next
From: Peter Fein
Date:
Subject: Re: No PUBLIC access by default?