notes src postgres-setup.md
332 B · 15 lines
Markdown
at main

Postgres Setup #

Create a @[user][postgres-user] and @[database][postgres-database] that matches your system user.

createuser -slP $(whoami)
createdb $(whoami)

Alternatively, within the @[psql][] prompt, create users using @[SQL][]:

CREATE USER "?" WITH SUPERUSER LOGIN PASSWORD '?';
CREATE DATABASE "?";