pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Luiz Rafael Culik Guimaraes <culikr@brturbo.com>
To: pgsql-sql@postgresql.org
Cc: pgsql-general@postgresql.org
Subject: Re: [SQL] query optimizer dont treat correctly OR
Date: Tue, 27 Apr 2004 16:35:39 +0100
Message-ID: <200404271635.39024.dev@archonet.com> (raw)
In-Reply-To: <007101c42c66$c0bffb30$2b38fea9@luiz>
References: <007101c42c66$c0bffb30$2b38fea9@luiz>

On Tuesday 27 April 2004 15:48, Luiz Rafael Culik Guimaraes wrote:
> Hello folks
>
> See the command bellow. I use some thing simmilar about an decade on
> Oracle,
> Sybase, MSSQL, DB2, etc. But with  Postgresql , he generate an FULL TABLE
> SCAN,
> and consequenyly it take about 10 minutes to run (Very big table..)

> Why Post do this wrong julgment  with the initial command?
> Exist some thing that i can configure to to make postgres works correctly ?

You'll need to post the output of EXPLAIN ANALYSE for your query. This will 
show how many rows PG thinks it will get back compared to how many it 
actually gets back.

-- 
  Richard Huxton
  Archonet Ltd



view thread (2+ messages)

Message-ID: <200404271635.39024.dev@archonet.com>
Permalink:  ../200404271635.39024.dev@archonet.com/
Also on:    postgresql.org/message-id/200404271635.39024.dev@archonet.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-sql@postgresql.org
  Cc: dev@archonet.com, culikr@brturbo.com, pgsql-general@postgresql.org
  Subject: Re: [SQL] query optimizer dont treat correctly OR
  In-Reply-To: <200404271635.39024.dev@archonet.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