Re: Index on a NULL-value

From: Tobias Brox <tobias(at)nordicbet(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Index on a NULL-value
Date: 2005-05-31 03:31:58
Message-ID: 20050531033158.GI26100@tobias.exoweb.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

[Tobias Brox]
> test=# set enable_seqscan=off;

[Bruno Wolff III - Mon at 10:16:53PM -0500]
> It isn't surprising that an index wasn't used since a sequential scan is
> going to be faster in your test case.
>
> If you want to test this out, you to want use realistically sized tables.

Wrong. In this case I was not wondering about the planners choise of not
using the index, but the fact that the planner could not find the index at
all. Reproducing it on a simple table in a test environment was a valid
strategy to solve this specific problem.

--
Tobias Brox, Beijing

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Bruno Wolff III 2005-05-31 03:36:33 Re: Index on a NULL-value
Previous Message Tobias Brox 2005-05-31 03:21:20 Re: Index on a NULL-value