I found performance problem. createdb speed fast after many inserts, updates then delete all from tables and redo the same thing speed degrade drop table and rebuild table redo operations speed fast
pgsql-bugs by date:
Соглашаюсь с условиями обработки персональных данных