Re: [SQL] bad select performance fixed by forbidding hash joins

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Nik Putnam <nputnam(at)spinon(dot)berkeley(dot)edu>
Cc: pgsql-sql(at)postgreSQL(dot)org
Subject: Re: [SQL] bad select performance fixed by forbidding hash joins
Date: 1999-10-21 13:30:43
Message-ID: 16442.940512643@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Nik Putnam <nputnam(at)spinon(dot)berkeley(dot)edu> writes:
> I tried this out to see if it would speed up *my* query too.
> The query went much faster, but gave different results!
> [nputnam(at)spinon ~]$ setenv PGOPTIONS "-fh"
> [nputnam(at)spinon ~]$ psql -e expression < query.sql
> gives 15 rows of output in 1s.
> [nputnam(at)spinon ~]$ unsetenv PGOPTIONS
> [nputnam(at)spinon ~]$ psql -e expression < query.sql
> gives 289 rows of output in 51s
> The slow one is giving the right answer.
> Why might they be different?

That would be a bug, without question. Can you provide a repeatable
test case?

regards, tom lane

Browse pgsql-sql by date

  From Date Subject
Next Message Rodrigo Bernardo Pimentel 1999-10-21 15:44:52 auto_increment?
Previous Message Nik Putnam 1999-10-21 07:22:13 Re: [SQL] bad select performance fixed by forbidding hash joins