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.
pgsql-novice by date:
Соглашаюсь с условиями обработки персональных данных