Re: Forcing postgresql to use an index

From: Grzegorz Jaśkiewicz <gryzman(at)gmail(dot)com>
To: Eugene Morozov <eugene(at)cactus-mouse(dot)com>
Cc: postgres performance list <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Forcing postgresql to use an index
Date: 2009-09-08 15:33:04
Message-ID: 2f4958ff0909080833y56e71a69me8aecb3a63f5eb99@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Learn it to not generate with "WITH IN (subq)", is this can be quite
slow on postgresql. Use joins instead.

looks like planner was wrong about rowcount in one place: Hash IN Join
(cost=2204.80..4809.31 rows=292 width=202) (actual
time=12.856..283.916 rows=15702 loops=1)

I have no idea why, probably more knowledgeable guys will know more
about why. But overall, all other stats seem to be okay.
What's the default_statistics_target setting in the postgresql set to?

One thing tho, what's the version, and platform.

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Eugene Morozov 2009-09-08 16:00:25 Re: Forcing postgresql to use an index
Previous Message Craig James 2009-09-08 14:30:12 Re: Using Gprof with Postgresql