check is schema is presetn postgres code example
Example: check schema exists postgresql
SELECT schema_name FROM information_schema.schemata WHERE schema_name = 'name';
SELECT schema_name FROM information_schema.schemata WHERE schema_name = 'name';