pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jörg Schulz <jschulz@sgbs.de>
Cc: pgsql-performance@postgresql.org
Subject: Re: different query plan for same select
Date: Wed, 23 Jul 2003 11:21:06 -0400
Message-ID: <13276.1058973666@sss.pgh.pa.us> (raw)
In-Reply-To: <200307231628.54295.jschulz@sgbs.de>
References: <200307231628.54295.jschulz@sgbs.de>

=?iso-8859-1?q?J=F6rg=20Schulz?= <jschulz@sgbs.de> writes:
> I'm not very familar with the output of the explain command but can you
> tell me why I get two different query plans?

Judging from the suspiciously round numbers in the cost estimates,
you've never done a VACUUM ANALYZE on any of these tables.  Try that and
then see what plans you get...

			regards, tom lane



view thread (3+ messages)  latest in thread

Message-ID: <13276.1058973666@sss.pgh.pa.us>
Permalink:  ../13276.1058973666@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13276.1058973666@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-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jschulz@sgbs.de
  Subject: Re: different query plan for same select
  In-Reply-To: <13276.1058973666@sss.pgh.pa.us>
  References: <200307231628.54295.jschulz@sgbs.de> <13276.1058973666@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