Re: *very* inefficient choice made by the planner (regarding IN(...)) - Mailing list pgsql-performance

From Tom Lane
Subject Re: *very* inefficient choice made by the planner (regarding IN(...))
Date
Msg-id 24880.1086880775@sss.pgh.pa.us
Whole thread Raw
In response to *very* inefficient choice made by the planner (regarding IN(...))  (Frank van Vugt <ftm.van.vugt@foxi.nl>)
Responses Re: *very* inefficient choice made by the planner (regarding IN(...))
List pgsql-performance
Frank van Vugt <ftm.van.vugt@foxi.nl> writes:
> What could I do to make it easier to choose a better plan?

Increase sort_mem.  You want it to pick a "hashed subplan", but
it's not doing so because 64000 rows won't fit in the default
sort_mem.

            regards, tom lane

pgsql-performance by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: *very* inefficient choice made by the planner (regarding
Next
From: Frank van Vugt
Date:
Subject: Re: *very* inefficient choice made by the planner (regarding IN(...))