Re: [PERFORM] query performance issue - Mailing list pgsql-performance

From Gunther
Subject Re: [PERFORM] query performance issue
Date
Msg-id 31c10833-9d19-dfa5-1cab-43eaae097828@gusw.net
Whole thread Raw
In response to Re: [PERFORM] query performance issue  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: [PERFORM] query performance issue  (Pavel Stehule <pavel.stehule@gmail.com>)
List pgsql-performance

On 11/15/2017 8:12, Pavel Stehule wrote:
There is wrong plan due wrong estimation

for this query you should to penalize nested loop

set enable_nestloop to off;

before evaluation of this query

You are not the only one with this issue. May I suggest to look at this thread a little earlier this month.

http://www.postgresql-archive.org/OLAP-reporting-queries-fall-into-nested-loops-over-seq-scans-or-other-horrible-planner-choices-tp5990160.html

where this has been discussed in some length.

regards,
-Gunther


pgsql-performance by date:

Previous
From: Gunter
Date:
Subject: [PERFORM] Re: Query planner gaining the ability to replanning after start ofquery execution.
Next
From: Pavel Stehule
Date:
Subject: Re: [PERFORM] query performance issue