"Ilia Kantor" <ilia@obnovlenie.ru> writes:
> Maybe a quickfix is possible for cases when 0 records is found to stop
> reading other AND elements..
Not sure how useful this will be in practice (since the planner tends
not to bother ANDing unselective indexes at all), but it's easy enough
to do ... so I did it.
regards, tom lane