CREATE DATABASE metadb_backup WITH TEMPLATE metadb;
ALTER DATABASE metadb RENAME TO metadb_old;
CREATE DATABASE metadb WITH TEMPLATE metadb_backup;
DROP DATABASE metadb_old; DROP DATABASE metadb_backup;
Was this page helpful?