pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Csaba Nagy <nagy@ecircle-ag.com>
To: Karen Hill <karen_hill22@yahoo.com>
Cc: postgres performance list <pgsql-performance@postgresql.org>
Subject: Re: How long should it take to insert 200,000 records?
Date: Tue, 06 Feb 2007 10:33:56 +0100
Message-ID: <1170754435.3101.122.camel@coppola.muc.ecircle.de> (raw)
In-Reply-To: <1170722158.973141.208230@j27g2000cwj.googlegroups.com>
References: <1170722158.973141.208230@j27g2000cwj.googlegroups.com>

On Tue, 2007-02-06 at 01:35, Karen Hill wrote:
> [snip] So far I've been sitting here for about 2 million ms
> waiting for it to complete, and I'm not sure how many inserts postgres
> is doing per second.

One way is to run analyze verbose on the target table and see how many
pages it has, and then do it again 1 minute later and check how many
pages it grew. Then multiply the page increase by the record per page
ratio you can get from the same analyze's output, and you'll get an
estimated growth rate. Of course this will only work if you didn't have
lots of free space in the table to start with... if you do have lots of
free space, you still can estimate the growth based on the analyze
results, but it will be more complicated.


In any case, it would be very nice to have more tools to attach to
running queries and see how they are doing... starting with what exactly
they are doing (are they in RI checks maybe ?), the actual execution
plan they are using, how much they've done from their work... it would
help a lot debugging performance problems.

Cheers,
Csaba.





view thread (16+ messages)  latest in thread

Message-ID: <1170754435.3101.122.camel@coppola.muc.ecircle.de>
Permalink:  ../1170754435.3101.122.camel@coppola.muc.ecircle.de/
Also on:    postgresql.org/message-id/1170754435.3101.122.camel@coppola.muc.ecircle.de

 · 

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: nagy@ecircle-ag.com, karen_hill22@yahoo.com
  Subject: Re: How long should it take to insert 200,000 records?
  In-Reply-To: <1170754435.3101.122.camel@coppola.muc.ecircle.de>

* 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