pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Eugene Fokin <elf@solvo.ru>
To: Victor Yegorov <viktors.jegorovs@nordlb.lv>
Cc: pgsql-performance@postgresql.org
Subject: Re: 7.3.2 vs 7.1.2
Date: Tue, 20 May 2003 19:33:48 +0400
Message-ID: <20030520153348.GA30541@solvo.ru> (raw)
In-Reply-To: <20030520140713.GN1976@nordlb.lv>
References: <20030520122838.GA28654@solvo.ru>
	<20030520130913.GM1976@nordlb.lv>
	<20030520132842.GA29262@solvo.ru>
	<20030520140713.GN1976@nordlb.lv>

On Tue, May 20, 2003 at 05:07:13PM +0300, Victor Yegorov wrote:
> 
> As you can see, in 7.2.1 index scan on loads (load_rcn_id_idx) takes 0.04..786.13,
> but in 7.3.2 - 0.07..4486.76.
> 
> Also, note the difference in the:
> 
> 7.2.1 "... rows=147281 width=4) ..."
> 7.3.2 "... rows=147281 width=181) ..."
> 
> My guesses:
> 
> 1. Check your index.
> 2. Do vacuum analyze again.
> 3. This part:
> (loads l JOIN (SELECT rcn_details.id, rcn_details.date_pour FROM rcn_details) r ON ((r.id = l.rcn_id)))
> 

I've tried to simplify it, nothing happens -- the same effect !
The question is -- why it scans my indexes so long ?
I've created "clean" experiment: the same machine, the same dump.
And perform the same procedure for each DB (btw, now it's 7.2.4 vs 7.3.1 :-)):

1. Install DB.
2. Init DB.
3. Fix postgresql.conf
4. Load dump.
5. vacuum analyze.
6. query !

Difference is the same like 5 seconds vs 50 seconds...

-- 
Eugene Fokin
SOLVO Ltd. Company



view thread (14+ messages)  latest in thread

Message-ID: <20030520153348.GA30541@solvo.ru>
Permalink:  ../20030520153348.GA30541@solvo.ru/
Also on:    postgresql.org/message-id/20030520153348.GA30541@solvo.ru

 · 

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-performance@postgresql.org
  Cc: elf@solvo.ru, viktors.jegorovs@nordlb.lv
  Subject: Re: 7.3.2 vs 7.1.2
  In-Reply-To: <20030520153348.GA30541@solvo.ru>
  References: <20030520122838.GA28654@solvo.ru> <20030520130913.GM1976@nordlb.lv> <20030520132842.GA29262@solvo.ru> <20030520140713.GN1976@nordlb.lv> <20030520153348.GA30541@solvo.ru>

* 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