notes/db/sql/postgres/feature/schemas.txt
Ihar Hancharenka 5dff80e88e first
2023-03-27 16:52:17 +03:00

21 строка
325 B
Plaintext

\dn
list [non-sys] schemas
\dt
list tables
current_schemas(true)
pg_temp_<N>, pg_catalog, public, app
search_path
pg_temp (pg_temp_<N>)
$user
gp_catalog
public
alter database <dbname> set search_path=...;
alter table <tablename> set schema=...;
create schema...
drop schema ... drop cascade;