Re: forcing pg to use an index - Mailing list pgsql-novice

From Tom Lane
Subject Re: forcing pg to use an index
Date
Msg-id 3101.1181417223@sss.pgh.pa.us
Whole thread Raw
In response to forcing pg to use an index  ("David Monarchi" <david.e.monarchi@gmail.com>)
List pgsql-novice
"David Monarchi" <david.e.monarchi@gmail.com> writes:
> CREATE INDEX domain_alexa_stock_ticker_dom ON domain_dom
>   USING btree (alexa_contactinfo___companystockticker___symbol_dom)
>   WHERE NOT alexa_contactinfo___companystockticker___symbol_dom IS NULL;

Try spelling that as "foo is not null", instead.  There's a limit to the
complexity of the planner's predicate-proving ability ...

            regards, tom lane

pgsql-novice by date:

Previous
From: "David Monarchi"
Date:
Subject: forcing pg to use an index
Next
From: Steve Lefevre
Date:
Subject: disallowed characters in table names?