mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 07:08:01 +00:00
Add List Available Schemas as a postgres til
This commit is contained in:
10
postgres/list-available-schemas.md
Normal file
10
postgres/list-available-schemas.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# List Available Schemas
|
||||
|
||||
Use the `\dn` command within a `psql` session to list the available schemas.
|
||||
This will only included user created schemas. This means that schemas like
|
||||
`public` will be listed whereas schemas `information_schema` and
|
||||
`pg_catalog` will not.
|
||||
|
||||
You can use `\dnS` to also list system schemas.
|
||||
|
||||
[source](http://www.postgresql.org/docs/current/static/app-psql.html)
|
||||
Reference in New Issue
Block a user