1
0
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:
jbranchaud
2016-02-10 20:53:50 -06:00
parent 9a9773e049
commit 343b7127b3
2 changed files with 12 additions and 1 deletions

View File

@@ -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)

View 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)