Skip to content

Commit 343b712

Browse files
committed
Add List Available Schemas as a postgres til
1 parent 9a9773e commit 343b712

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ variety of languages and technologies. These are things that don't really
77
warrant a full blog post. These are mostly things I learn by pairing with
88
smart people at [Hashrocket](http://hashrocket.com/).
99

10-
_328 TILs and counting..._
10+
_329 TILs and counting..._
1111

1212
---
1313

@@ -163,6 +163,7 @@ _328 TILs and counting..._
163163
- [Limit Execution Time Of Statements](postgres/limit-execution-time-of-statements.md)
164164
- [List All Columns Of A Specific Type](postgres/list-all-columns-of-a-specific-type.md)
165165
- [List All Versions Of A Function](postgres/list-all-versions-of-a-function.md)
166+
- [List Available Schemas](postgres/list-available-schemas.md)
166167
- [List Database Users](postgres/list-database-users.md)
167168
- [Max Identifier Length Is 63 Bytes](postgres/max-identifier-length-is-63-bytes.md)
168169
- [pg Prefix Is Reserved For System Schemas](postgres/pg-prefix-is-reserved-for-system-schemas.md)

postgres/list-available-schemas.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# List Available Schemas
2+
3+
Use the `\dn` command within a `psql` session to list the available schemas.
4+
This will only included user created schemas. This means that schemas like
5+
`public` will be listed whereas schemas `information_schema` and
6+
`pg_catalog` will not.
7+
8+
You can use `\dnS` to also list system schemas.
9+
10+
[source](http://www.postgresql.org/docs/current/static/app-psql.html)

0 commit comments

Comments
 (0)