pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: edipoelder@ig.com.br
Cc: pgsql-sql@postgresql.org
Subject: Re: Memory and performance
Date: Wed, 04 Apr 2001 21:53:30 -0400
Message-ID: <14398.986435610@sss.pgh.pa.us> (raw)
In-Reply-To: <200104041715.f34HF8858323@postgresql.org>
References: <200104041715.f34HF8858323@postgresql.org>

edipoelder@ig.com.br writes:
>     I have noted that Postgresql don't make a good memory handle. I have 
> made the tables/procedure (in attached file) and run it as "select bench(10, 
> 5000)". This will give a 50000 records inserts (5 x 10000). (well, I run it 
> on a P200+64MB of RAM, under Linux, and Postgres 7.0.2. In a more powerfull 
> machine, you can try other values). 

>     I get as result, the following times: 

>  id | objname | benchtime 
> ----+---------+----------- 
>   1 | group 1 | 00:00:32 
>   2 | group 2 | 00:00:47 
>   3 | group 3 | 00:01:13 
>   4 | group 4 | 00:01:41 
>   5 | group 5 | 00:02:08 
> (5 rows) 

This is an inefficiency in handling of foreign-key triggers.  It's fixed
for 7.1 --- in current sources I get

 id | objname  | benchtime
----+----------+-----------
  1 | group 1  | 00:00:03
  2 | group 2  | 00:00:03
  3 | group 3  | 00:00:03
  4 | group 4  | 00:00:03
  5 | group 5  | 00:00:03
  6 | group 6  | 00:00:03
  7 | group 7  | 00:00:03
  8 | group 8  | 00:00:03
  9 | group 9  | 00:00:03
 10 | group 10 | 00:00:03
(10 rows)

			regards, tom lane



view thread (8+ messages)  latest in thread

Message-ID: <14398.986435610@sss.pgh.pa.us>
Permalink:  ../14398.986435610@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/14398.986435610@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, edipoelder@ig.com.br
  Subject: Re: Memory and performance
  In-Reply-To: <14398.986435610@sss.pgh.pa.us>
  References: <200104041715.f34HF8858323@postgresql.org> <14398.986435610@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