"Dawid Kuroczko" <qnex42@xxxxxxxxx> 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