From: Josh Berkus <josh@agliodbs.com>
To: Jean-Max Reymond <jmreymond@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Optimizing a request
Date: Tue, 31 Aug 2004 12:15:40 -0700
Message-ID: <200408311215.40812.josh@agliodbs.com> (raw)
In-Reply-To: <4b09a0c0408311159fa91802@mail.gmail.com>
References: <4b09a0c0408311159fa91802@mail.gmail.com>
Jean,
> I have the following structure in my base 7.4.2
Upgrade to 7.4.5. The version you're using has several known issues with data
restore in the event of system failure.
> Hash Join (cost=8.27..265637.59 rows=25 width=130)
> Hash Cond: ("outer".rub_id = "inner".rub_id)
> -> Seq Scan on article (cost=0.00..215629.00 rows=10000000 width=108)
> -> Hash (cost=8.26..8.26 rows=3 width=22)
> -> Index Scan using rubrique_parent on rubrique
> (cost=0.00..8.26 rows=3 width=22)
> Index Cond: (rub_parent = 8)
Those look suspiciously like stock estimates. When was the last time you ran
ANALYZE?
--
--Josh
Josh Berkus
Aglio Database Solutions
San Francisco
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: josh@agliodbs.com, jmreymond@gmail.com
Subject: Re: Optimizing a request
In-Reply-To: <200408311215.40812.josh@agliodbs.com>
* 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