Re: not using partial index - Mailing list pgsql-performance

From Tom Lane
Subject Re: not using partial index
Date
Msg-id 25018.1303305957@sss.pgh.pa.us
Whole thread Raw
In response to not using partial index  (Willy-Bas Loos <willybas@gmail.com>)
List pgsql-performance
Willy-Bas Loos <willybas@gmail.com> writes:
> [ NOT field1 ISNULL is not seen as equivalent to field1 IS NOT NULL ]

> Any ideas why this might be?

The planner does not spend an infinite number of cycles on trying to
make different expressions look alike.

As it happens, 9.1 does know this equivalence, as a byproduct of
http://git.postgresql.org/gitweb?p=postgresql.git&a=commitdiff&h=220e45bf325b061b8dbd7451f87cedc07da61706
But I don't consider it a bug that older versions don't do it.

            regards, tom lane

pgsql-performance by date:

Previous
From: Jeff
Date:
Subject: Re: postgresql random io test with 2 SSD Kingston V+100 500GB in (software) Raid1
Next
From: Laurent Laborde
Date:
Subject: Re: postgresql random io test with 2 SSD Kingston V+100 500GB in (software) Raid1