I manually built postgresql-13.11 on an m1 mac.
When attempting to run either /path/to/postgres/bin/postgres
(same for postmaster), i get the following error:
postgres does not know where to find the server configuration file.
You must specify the --config-file or -D invocation option or set the PGDATA environment variable.
which i was able to bypass by running /path/to/postgres/bin/postgres -D /path/to/databaseDir
, postgres starts normally.
- Does that mean the server can only start for a single database?
Clusters are stored as a directory referred to as base directory.
- Does that mean all my databases are stored directly under /path/to/postgresDir / Where exactly is the base directory ?