probably you can write D := do_breakdown(...);and it will be fasterPavel
pgsql-sql by date:
Соглашаюсь с условиями обработки персональных данных