By the looks of it, the whole environment manipulation is only done to copy a database. Would it be an idea to simply copy the database using the cursor, using
CREATE DATABASE newdb WITH TEMPLATE originaldb OWNER dbuser;
?
« Back to merge proposal
By the looks of it, the whole environment manipulation is only done to copy a database. Would it be an idea to simply copy the database using the cursor, using
CREATE DATABASE newdb WITH TEMPLATE originaldb OWNER dbuser;
?