Hi I want to create the schema with the name assigned to the variable. Example:
CREATE OR REPLACE FUNCTION test1("name" character varying)
RETURNS void AS
'CREATE SCHEMA "name";'
LANGUAGE 'sql' VOLATILE
COST 100;
ALTER FUNCTION test1(character varying) OWNER TO postgres;