Re: Long running query: How to monitor the progress - Mailing list pgsql-performance

From Tom Lane
Subject Re: Long running query: How to monitor the progress
Date
Msg-id 19480.1440510642@sss.pgh.pa.us
Whole thread Raw
In response to Long running query: How to monitor the progress  (Johann Spies <johann.spies@gmail.com>)
List pgsql-performance
Johann Spies <johann.spies@gmail.com> writes:
> Some of hour queries to extract the data and insert it in other tables runs
> for days and in one case we have created a table with 758million unique
> records.

> Now my question. Is there a way to monitor the progress of a long running
> query like this?

You could watch how fast the target table is physically growing, perhaps.
Or I think contrib/pgstattuple could be used to count uncommitted tuples
in it.

            regards, tom lane


pgsql-performance by date:

Previous
From: Henrik Thostrup Jensen
Date:
Subject: Gist indexing performance with cidr types
Next
From: Emre Hasegeli
Date:
Subject: Re: Gist indexing performance with cidr types