postgres check schema exists connection 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';