Are you doing a "pg_result -clear" to release each pg_exec result when you are done with it? If not, you'll eventually run out of memory... regards, tom lane
pgsql-novice by date:
Соглашаюсь с условиями обработки персональных данных