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:
@@ -7,7 +7,7 @@ variety of languages and technologies. These are things that don't really
|
||||
warrant a full blog post. These are mostly things I learn by pairing with
|
||||
smart people at [Hashrocket](http://hashrocket.com/).
|
||||
|
||||
_328 TILs and counting..._
|
||||
_329 TILs and counting..._
|
||||
|
||||
---
|
||||
|
||||
@@ -163,6 +163,7 @@ _328 TILs and counting..._
|
||||
- [Limit Execution Time Of Statements](postgres/limit-execution-time-of-statements.md)
|
||||
- [List All Columns Of A Specific Type](postgres/list-all-columns-of-a-specific-type.md)
|
||||
- [List All Versions Of A Function](postgres/list-all-versions-of-a-function.md)
|
||||
- [List Available Schemas](postgres/list-available-schemas.md)
|
||||
- [List Database Users](postgres/list-database-users.md)
|
||||
- [Max Identifier Length Is 63 Bytes](postgres/max-identifier-length-is-63-bytes.md)
|
||||
- [pg Prefix Is Reserved For System Schemas](postgres/pg-prefix-is-reserved-for-system-schemas.md)
|
||||
|
||||
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