pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hannu Krosing <hannu@tm.ee>
To: Enix Empreendimentos e Construções "Ltda." <contato@enix.com.br>
Cc: pgsql-performance@postgresql.org
Subject: Re: Postgresql  performance
Date: 14 Mar 2003 00:26:20 +0200
Message-ID: <1047594379.1709.98.camel@fuji.krosing.net> (raw)
In-Reply-To: <000701c2e8d8$95637b60$02ada8c0@enix>
References: <000701c2e8d8$95637b60$02ada8c0@enix>

Enix Empreendimentos e Construções Ltda. kirjutas K, 12.03.2003 kell
22:47:
> Hi everybody.
> 
> I am a newbie to Postgresql, trying to migrate an application from MSAccess.
> 
> I am quite dissapointed with the problems I am facing with some queries
> containing multiple joins.

Postgres currently does *not* optimize join order for explicit joins
(this is currently left as a cludge for users to hand-optimize query
plans).

To get the benefits form optimiser you have to rewrite

FROM TA JOIN TB ON TA.CB=TB.CB

to 

FROM A,B
WHERE TA.CB=TB.CB

> I confess it has been hard for someone that is
> not a DBA to figure out which are the problems. Just to ilustrate, I have
> some queries that provide a reasonable query plan (at least from my point of
> view), but that return no result: keep running on and on.

Could you try to explain it in other words (or give an example). I am
not native english speaker and I can read your text in at least 5
different ways ;(

> Is the performance of the mentioned Postgresql version much slower than the
> 7.3.1?

It can be slower. It may also be a little faster in some very specific
cases ;)

--------------
Hannu




view thread (16+ messages)  latest in thread

Message-ID: <1047594379.1709.98.camel@fuji.krosing.net>
Permalink:  ../1047594379.1709.98.camel@fuji.krosing.net/
Also on:    postgresql.org/message-id/1047594379.1709.98.camel@fuji.krosing.net

 · 

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: hannu@tm.ee, contato@enix.com.br
  Subject: Re: Postgresql  performance
  In-Reply-To: <1047594379.1709.98.camel@fuji.krosing.net>

* 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