Regarding my post of a few minutes ago, I should have mentioned that the queries return fine, no matter how many rows, viathe psql command-line tool.
Соглашаюсь с условиями обработки персональных данных