I am having trouble connecting to postgres (installed using hombrew version 9.4.4). I have previously been able to connect successfully. The only thing that I believe could have changed is I installed PHP 5.5.
I try to start the server:
postgres -D /usr/local/var/postgres
LOG: unrecognized configuration parameter "dynamic_shared_memory_type"
in file "/usr/local/var/postgres/postgresql.conf" line 130
FATAL: configuration file "/usr/local/var/postgres/postgresql.conf"
contains errors
My server logs return the same errors. Here is the contents of the postgresql.conf file that is throwing the error:
dynamic_shared_memory_type = posix # the default is the first option
# supported by the operating system:
# posix
# sysv
# windows
# mmap
# use none to disable dynamic shared memory
In attempts to troubleshoot, I commented out dynamic_shared_memory_type and got this error:
FATAL: database files are incompatible with server
DETAIL: The data directory was initialized by PostgreSQL version 9.4,
which is not compatible with this version 9.3.5.
However, running brew info postgres, I am told my version is 9.4.4.
postgres --version
what does it tell? (presumably 9.3.5). – Daniel Vérité Aug 4 '15 at 0:18postgres --version
returns 9.3.5 – Kyle Giard-Chase Aug 5 '15 at 3:27