Saya baru saja menginstal ulang postgres via brew install postgres
Saya berlari initdb /usr/local/var/postgres -E utf8
tetapi mendapatkan ini:
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".
jadi, saya rm -rf
folder postgres dan jalankan lagi:
initdb /usr/local/var/postgres -E utf8
katanya semuanya baik-baik saja:
Success. You can now start the database server using:
postgres -D /usr/local/var/postgres
jadi, saya menjalankan perintah itu dan mendapat:
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"?
Sekarang ketika saya melihat Monitor Aktivitas saya, saya bisa melihat 6 contoh postgress.
Bagaimana cara saya memperbaikinya?
postgres
dengan postmaster dan lima backend utilitas. PostgreSQL adalah arsitektur multi-proses.