What was a key element that made the sequential-master-update process work in the 1970's when data was stored on tape drives?
What is the primary value add of relational databases over flat files?
What is the key innovation that underlies the power of relational databases?
What organization was instrumental in bringing people together to build the SQL standard? National Institute of Standards and Technology (NIST)
What is a commonly used term that is equivalent to "relation"?
What is the typical name of the "all powers" account in a PostgreSQL server.
How does a PostgreSQL client like psql connect to a PostgreSQL server?
A network connection
# Run the postgres
docker run --name postgres \\
-e POSTGRES_DB=postgres \\
-e POSTGRES_PASSWORD=postgres \\
-p 5432:5432 \\
-d postgres:18
psqlbrew install libpq
brew link --force libpq
[Homebrew] → installs libpq formula
↓
[libpq] → contains psql, pg_dump, pg_restore, etc.
↓
Not linked by default → you run 'brew link --force libpq'
↓
psql command becomes available globally
Homebrew avoids linking libpq automatically because it conflicts with postgresql
package. Since we don’t use postgresql package and use local psql to connect the Postgres in docker, so we force the command available globally.
# Enter the postgres server
psql "host=localhost port=5432 user=postgres password=postgres dbname=postgres"
psql# Get into the continer
docker exec -it <continer_id> bash
# The container has installed the psql
# Login the postgres server
psql user=postgres dbname=postgres
# or
psql -U postgres -d postgres
# After login
psql (18.1, server 18.0 (Debian 18.0-1.pgdg13+3))
Type "help" for help.
postgres=# SELECT version();