pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: pgsql-performance@postgresql.org, Alexandre Leclerc <alexandre.leclerc@gmail.com>
Subject: Re: nuderstanding 'explain analyse'
Date: Tue, 16 Nov 2004 22:07:50 -0800
Message-ID: <200411162207.50341.josh@agliodbs.com> (raw)
In-Reply-To: <1dc7f0e304111613116532a64b@mail.gmail.com>
References: <1dc7f0e304111613116532a64b@mail.gmail.com>

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



view thread (2+ messages)

Message-ID: <200411162207.50341.josh@agliodbs.com>
Permalink:  ../200411162207.50341.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200411162207.50341.josh@agliodbs.com

 · 

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: josh@agliodbs.com, alexandre.leclerc@gmail.com
  Subject: Re: nuderstanding 'explain analyse'
  In-Reply-To: <200411162207.50341.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