>Could you please post EXPLAIN for that query?
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных