"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