Try doing select * from pg_locks to see how many locks you have out.
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных