Sorry guys, what I meant was to log the tuple returned count not the values to get printed in logs.
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных