Re: varchar does not work too well with IS NOT NULL partial indexes.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Dawid Kuroczko" <qnex42(at)gmail(dot)com>
Cc: "Postgres General" <pgsql-general(at)postgresql(dot)org>
Subject: Re: varchar does not work too well with IS NOT NULL partial indexes.
Date: 2007-07-24 17:23:09
Message-ID: 12868.1185297789@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Dawid Kuroczko" <qnex42(at)gmail(dot)com> writes:
> Basically it looks like planner makes better use of
> WHERE ... IS NOT NULL indexes if either you explicitly
> put "text" as a column type or that you cast the column
> to ::text when making index.

I've applied a patch for this.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Gautam Sampathkumar 2007-07-24 17:47:44 Porting MySQL data types to PostgreSQL
Previous Message Stephan Szabo 2007-07-24 17:06:31 Re: Delete/update with limit