Re: [GENERAL] Fast join - Mailing list pgsql-general

From Leon
Subject Re: [GENERAL] Fast join
Date
Msg-id 3778D195.64CBF3BD@udmnet.ru
Whole thread Raw
In response to Re: [GENERAL] Fast join  (Bruce Momjian <maillist@candle.pha.pa.us>)
Responses Re: [GENERAL] Fast join  (Bruce Momjian <maillist@candle.pha.pa.us>)
List pgsql-general
Bruce Momjian wrote:
>
> > Hello all!

> > during preliminary tests, a problem concerning joins. The problem
> > is that joins are too slow. Consider that sequence of commands
> > given at the command prompt of psql (strange duplicates of NOTICEs are
> > removed):
>
> Are you using 6.5?  If not, upgrade.  The optimizer is much smarter in
> 6.5.

:)

The last and the latest!  6.5 I mean.

>
> Also, if a join does most of the table, it is faster do not use indexes,
> and just sort on the backend.
>

The problem is - when you want just a small part of the table(s) and
you have indices to facilitate qualifications, Postgres doesn't
use 'em !  This is a question of Life and Death - i.e. to use or
not to use Postgres.

--
Leon.

pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [GENERAL] Fast join
Next
From: Bruce Momjian
Date:
Subject: Re: [GENERAL] Fast join