Skip to content

Commit 692fbf8

Browse files
authored
Merge pull request #111 from divakaivan/patch-1
[update setup readme] Week 1 - how to insert tables
2 parents 4c603ba + 63e01a8 commit 692fbf8

File tree

1 file changed

+6
-0
lines changed
  • bootcamp/materials/1-dimensional-data-modeling

1 file changed

+6
-0
lines changed

bootcamp/materials/1-dimensional-data-modeling/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,12 @@ There are two methods to get Postgres running locally.
141141
142142
- → This will run the file `data.dump` from inside your psql REPL.
143143
144+
- If you did the setup using Option 2, and the tables are not in the database, another solution is to:
145+
146+
1. Find the container id by running `docker ps` - under CONTAINER ID
147+
2. Go inside the container by executing `docker exec -it <container_name_or_id> bash`
148+
3. Run `pg_restore -U $POSTGRES_USER -d $POSTGRES_DB /docker-entrypoint-initdb.d/data.dump`
149+
144150
---
145151
146152
#### 💡 Additional Docker Make commands

0 commit comments

Comments
 (0)