Ho appena reinstallato Postgres tramite brew install postgres
Ho corso initdb /usr/local/var/postgres -E utf8
ma ho ottenuto questo:
The files belonging to this database system will be owned by user "atal421".
This user must also own the server process.
The database cluster will be initialized with locale "en_US.UTF-8".
The default text search configuration will be set to "english".
initdb: directory "/usr/local/var/postgres" exists but is not empty
If you want to create a new database system, either remove or empty
the directory "/usr/local/var/postgres" or run initdb
with an argument other than "/usr/local/var/postgres".
così, ho rm -rf
la cartella postgres e l' ho eseguita di nuovo:
initdb /usr/local/var/postgres -E utf8
diceva che tutto andava bene:
Success. You can now start the database server using:
postgres -D /usr/local/var/postgres
così, ho eseguito quel comando e ho ottenuto:
postgres -D /usr/local/var/postgres
FATAL: lock file "postmaster.pid" already exists
HINT: Is another postmaster (PID 13731) running in data directory "/usr/local/var/postgres"?
Ora, quando guardo il mio Activity Monitor, vedo 6 istanze di postgress.
Come posso risolvere questo problema?
postgres