-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split into sub-projects and clean up READMEs
- Loading branch information
Showing
16 changed files
with
81 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...administration/postgres-administration.md → administration/administration.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# arrays | ||
|
||
Showcasing the `array` SQL data type. | ||
|
||
A dataset of "observations" is used to explore the `array` data type. | ||
|
||
## Instructions | ||
|
||
* Apply the schema: | ||
* `psql --username postgres --host localhost -f observations-schema.ddl` | ||
* Insert test data: | ||
* `psql --username postgres --host localhost -f observations-data.sql` | ||
* Try out the queries in `observations-explore.sql` and learn about SQL arrays! |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# docker | ||
|
||
Run Postgres in a Docker container using Docker Compose. | ||
|
||
## Instructions | ||
|
||
1. Start a Postgres instance using Docker Compose: | ||
* `docker-compose up --detach` | ||
1. Explore the database! Enter a session on the command line: | ||
* `psql --username postgres --host localhost` | ||
1. Stop the Postgres Docker container: | ||
* `docker-compose down` | ||
|
||
## Referenced Material | ||
|
||
* [Docker Compose](https://docs.docker.com/compose/) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# lag | ||
|
||
Showcasing the `lag` Postgres function which is a part of Postgres' windowing support. | ||
|
||
Specifically, I wanted to illustrate a query where each row needs to be compared to the row preceding it. | ||
|
||
## Instructions | ||
|
||
* Apply the schema: | ||
* `psql --username postgres --host localhost -f snapshots-schema.ddl` | ||
* Insert test data: | ||
* `psql --username postgres --host localhost -f snapshots-data.sql` | ||
* Try out the queries `snapshots-explore.sql` and learn about `lag`! | ||
|
||
## Referenced Material | ||
|
||
* [Postgres official docs: "Window Functions" tutorial](https://www.postgresql.org/docs/13/tutorial-window.html) | ||
* [Postgres official docs: "Window Functions" reference](https://www.postgresql.org/docs/13/functions-window.html) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.