Re: Percent of update completed - Mailing list pgsql-novice

From Tom Lane
Subject Re: Percent of update completed
Date
Msg-id 27311.1107792000@sss.pgh.pa.us
Whole thread Raw
In response to Percent of update completed  (Colin McGuigan <cmcguigan@earthcomber.com>)
Responses Re: Percent of update completed
List pgsql-novice
Colin McGuigan <cmcguigan@earthcomber.com> writes:
> Is there a way to see how many rows of a table have been processed by an
> update?  I've got an update on a 13,000,000 row table that's been
> running for five days now.

Not directly, but if you use the contrib/pgstattuple module you can get
readings on the numbers of committed and uncommitted tuples in the
table.  The rate at which the uncommitted-tuples count increases would
tell you how fast the update is proceeding.  (You should probably not
assume that you started with zero uncommitted tuples, unless you know
you'd vacuumed the table just beforehand.)

            regards, tom lane

pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: multiple sampling from tables and saving output
Next
From: Michael Fuhr
Date:
Subject: Re: simple query question