You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
-- List schemas
|
|
\dn
|
|
SELECT schema_name FROM information_schema.schemata;
|
|
SELECT nspname FROM pg_catalog.pg_namespace;
|
|
|
|
-- Create schema
|
|
CREATE SCHEMA IF NOT EXISTS <schema_name>;
|
|
|
|
-- Drop schema
|
|
DROP SCHEMA IF EXISTS <schema_name> CASCADE;
|