pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Johann Spies <johann.spies@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Long running query: How to monitor the progress
Date: Tue, 25 Aug 2015 09:50:42 -0400
Message-ID: <19480.1440510642@sss.pgh.pa.us> (raw)
In-Reply-To: <CAGZ55DTvuGvVkcQO4vgNrbQOkFZedGy+5Y5A1qFB3PT5HN2GiA@mail.gmail.com>
References: <CAGZ55DTvuGvVkcQO4vgNrbQOkFZedGy+5Y5A1qFB3PT5HN2GiA@mail.gmail.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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


-- 
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance



view thread (2+ messages)

Message-ID: <19480.1440510642@sss.pgh.pa.us>
Permalink:  ../19480.1440510642@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/19480.1440510642@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, johann.spies@gmail.com
  Subject: Re: Long running query: How to monitor the progress
  In-Reply-To: <19480.1440510642@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox