\set ON_ERROR_STOP on

SELECT format('ALTER SCHEMA public OWNER TO %I', :'app_user')\gexec
SELECT format('GRANT ALL ON SCHEMA public TO %I', :'app_user')\gexec
