"Gaetano Mendola" <mendola(at)bigfoot(dot)com> writes:
> the index is not used if I remove the DISTINCT ON
> the filter is used!!!
> Is it a known issue ?
Okay, okay already ;-)
This has been on my to-fix list for awhile. It's fixed now for 7.4.
regards, tom lane