Re: [SQL] bad select performance fixed by forbidding hash joins
От
Tom Lane
Тема
Re: [SQL] bad select performance fixed by forbidding hash joins
Дата
Msg-id
16442.940512643@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
Re: [SQL] bad select performance fixed by forbidding hash joins Nik Putnam <nputnam@spinon.berkeley.edu>
Re: [SQL] bad select performance fixed by forbidding hash joins Tom Lane <tgl@sss.pgh.pa.us>
Nik Putnam 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
В списке pgsql-sql по дате отправления
От: Nik Putnam
Дата: