Regarding my post of a few minutes ago, I should have mentioned that the queries return fine, no matter how many rows, via the psql command-line tool.