Use pg_dump to dump your current schema in a SQL-formated file. Open the file, replace the schemaname with the new name and excute this script in your database to create the new schema and all other objects inside this schema.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…