Even if the query end in aproximately 200 sec, the explain analyze is still working and there are gone more than 1000 sec... I leave it working this night. Have a nice evening and thenks for the help.
pgsql-performance by date:
Соглашаюсь с условиями обработки персональных данных