3 homepage: https://www.postgresql.org/
5 PostgreSQL: The World's Most Advanced Open Source Relational Database.
14 Use `@x.y.z` for a specific version.
18 > Postgres is the all-in-one database for beginners and experts alike. It
19 > handles SQL, 'NoSQL', JSON, HSTORE, Full-Text Search, Messages Queues and
20 > more. Best bang for buck.
22 ### Initialize a database with a password
25 echo "postgres" > /tmp/pwfile
26 mkdir -p $HOME/.local/share/postgres/var/
28 initdb -D $HOME/.local/share/postgres/var/ \
29 --username postgres --pwfile "/tmp/pwfile" \
30 --auth-local=password --auth-host=password
35 ### Start the postgres server
38 postgres -D $HOME/.local/share/var/postgres -p 5432
41 ### Connect with the psql client
44 psql 'postgres://postgres:postgres@localhost:5432/postgres'