Setting up PostgreSQL
Run PostgreSQL#
Shared on your machine at
workspace/input
Password is
postgres
Connect to Postgres and load scripts#
Connect to postgres#
Load SQL script#
Or execute it directly in the container if the previous command fails:
Explore database#
Using tools can be helpful to explore the content of your database.
dbeaver#
Dbeaver is a Eclipse based tool to explore database, it allows to generate diagrams to get an overview of the tables and relations.
Not available as web UI nor Docker image. Can be installed locally:
Unfortunately the diagrams can be a challenge to export. They manage to face
Java Heap Spaceerror when generating a png from a ER diagram on 16G machine. How they manage to fail such a simple task is impressing.
pgAdmin#
The official UI for Postgres databases. Does not include user-friendly features such as ER diagram generation. But available as web UI in a docker image:
Login with
test@test.edu/password
Or directly using docker: