pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Nik Putnam <nputnam@spinon.berkeley.edu>
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] bad select performance fixed by forbidding hash joins
Date: Thu, 21 Oct 1999 09:30:43 -0400
Message-ID: <16442.940512643@sss.pgh.pa.us> (raw)
In-Reply-To: <380EBF24.3CCDBC1B@spinon.berkeley.edu>

Nik Putnam <nputnam@spinon.berkeley.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@spinon ~]$ setenv PGOPTIONS "-fh"
> [nputnam@spinon ~]$ psql -e expression < query.sql
> gives 15 rows of output in 1s.
> [nputnam@spinon ~]$ unsetenv PGOPTIONS
> [nputnam@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



view thread (7+ messages)

Message-ID: <16442.940512643@sss.pgh.pa.us>
Permalink:  ../16442.940512643@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/16442.940512643@sss.pgh.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, nputnam@spinon.berkeley.edu
  Subject: Re: [SQL] bad select performance fixed by forbidding hash joins
  In-Reply-To: <16442.940512643@sss.pgh.pa.us>
  References: <380EBF24.3CCDBC1B@spinon.berkeley.edu> <16442.940512643@sss.pgh.pa.us>

* 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