Re: performance with query

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alberto Dalmaso <dalmaso(at)clesius(dot)it>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: performance with query
Date: 2009-06-16 15:31:30
Message-ID: 15480.1245166290@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Alberto Dalmaso <dalmaso(at)clesius(dot)it> writes:
> Il giorno mar, 16/06/2009 alle 15.58 +0100, Matthew Wakeling ha scritto:
>>> enable_hashjoin = off
>>> enable_nestloop = off
>>> enable_seqscan = off
>>> enable_sort = off
>>
>> Why are these switched off?
>>
> because of the need to pump up the performance of the complex query.

That is *not* the way to improve performance of a query. Turning off
specific enable_ parameters can be helpful while investigating planner
behavior, but it is never recommended as a production solution. You
have already found out why.

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Alberto Dalmaso 2009-06-16 15:31:56 Re: performance with query
Previous Message Alexander Staubo 2009-06-16 15:16:35 Re: Yet another slow nested loop