> Can someone please help in schema copy in same database ?
A while ago, I created the clone_schema function which will duplicate one schema to a new schema with the option to copy or not copy data. However, since there are two versions depending on the version of PostgreSQL you are using, and you have not specified which version of PostgreSQL you have, I cannot help you at this time.
As long as the edited sql script has been changed from oldschema.tables or oldschema.functions etc... to newschema.functions, newschema.functios etc...