New postgresql setup template using deferred constraints