Skip site navigation (1) Skip section navigation (2)

Re: [SQL] query optimizer dont treat correctly OR

From: Richard Huxton <dev(at)archonet(dot)com>
To: "Luiz Rafael Culik Guimaraes" <culikr(at)brturbo(dot)com>,<pgsql-sql(at)postgresql(dot)org>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: [SQL] query optimizer dont treat correctly OR
Date: 2004-04-27 15:35:39
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-generalpgsql-sql
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
> 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

In response to

pgsql-sql by date

Next:From: Kent L. NasveschukDate: 2004-04-27 18:10:25
Subject: Re: [SQL] Postgres as backend to Backup System
Previous:From: Luiz Rafael Culik GuimaraesDate: 2004-04-27 14:48:48
Subject: query optimizer dont treat correctly OR

pgsql-general by date

Next:From: Peter EisentrautDate: 2004-04-27 16:44:03
Subject: Re: Unicode encoding
Previous:From: wespvpDate: 2004-04-27 15:28:53
Subject: Re: shadowing (like IB/Firebird)

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group