if schema exist in postgresql 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';