Re: Long running query: How to monitor the progress

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Johann Spies <johann(dot)spies(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Long running query: How to monitor the progress
Date: 2015-08-25 13:50:42
Message-ID: 19480.1440510642@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Johann Spies <johann(dot)spies(at)gmail(dot)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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Emre Hasegeli 2015-08-25 14:25:52 Re: Gist indexing performance with cidr types
Previous Message Henrik Thostrup Jensen 2015-08-25 13:11:43 Gist indexing performance with cidr types