Re: nuderstanding 'explain analyse'

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: pgsql-performance(at)postgresql(dot)org, Alexandre Leclerc <alexandre(dot)leclerc(at)gmail(dot)com>
Subject: Re: nuderstanding 'explain analyse'
Date: 2004-11-17 06:07:50
Message-ID: 200411162207.50341.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Alexandre,

> If the plans for both queries are exactly the same, should I assume
> that the cost will also be the same?

Nope. A seq scan over 1,000,000,000 rows is going to cost a LOT more than a
seq scan over 1000 rows, even though it's the same plan.

When you have the data sorted out, post explain analyzes and we'll take a shot
at it.

--
Josh Berkus
Aglio Database Solutions
San Francisco

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Joshua D. Drake 2004-11-17 06:40:07 Re: query plan question
Previous Message Josh Berkus 2004-11-17 05:51:14 Re: Table Partitions: To Inherit Or Not To Inherit