Do I need some particular kind of settings on my transaction to be able to delete and insert afresh in the same transaction?
In case it is relevant - the first delete will lead to cascaded deletes on children.
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных