Mac OS X 10.6.x에서 postgres를 설치했습니다. 나는 포스트 그레스 데이터베이스 버전을 실행하는 경우 : I는 서버의 버전을 확인postgres 데이터베이스와 서버의 충돌 버전
psql --versionpsql (PostgreSQL) 9.1.1
contains support for command-line editing
: 내가 도망 그래서
psql -c "select version();" version
--------------------------------------------------------------------------------------------------------------------------------------------------
PostgreSQL 9.0.5 on x86_64-apple-darwin10.8.0, compiled by GCC i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3), 64-bit
(1 row)
이
bash-3.2$ psql
psql (9.1.1, server 9.0.5)
WARNING: psql version 9.1, server version 9.0.
Some psql features might not work.
내가 무엇을 그 확실하지 않다 기능이 있습니다. 이러한 버전은 상충됩니다. 나는 postgres를 사용하는 것에 익숙하지 않기 때문에 postgres 서버를 업그레이드하는 방법을 모른다. 온라인에서 검색하려고했지만 많은 도움을 얻지 못했습니다. 나는 postgres를 제거하고 재설치하고 싶지 않다. 어쨌든 내가 모순없이 서로 사용할 수 있습니까? 또는 서버를 데이터베이스와 동일한 버전으로 업그레이드 하시겠습니까?
편집 :
which psql
/opt/local/lib/postgresql91/bin//psql
which postgres
/opt/local/lib/postgresql91/bin//postgres
ps -eaf|grep postgres
0 60 1 0 0:00.07 ?? 0:00.09 /opt/local/bin/daemondo --label=postgresql90-server --start-cmd /opt/local/etc/LaunchDaemons/org.macports.postgresql90-server/postgresql90-server.wrapper start ; --stop-cmd /opt/local/etc/LaunchDaemons/org.macports.postgresql90-server/postgresql90-server.wrapper stop ; --restart-cmd /opt/local/etc/LaunchDaemons/org.macports.postgresql90-server/postgresql90-server.wrapper restart ; --pid=none
103 3971 3967 0 0:00.69 ?? 0:01.17 postgres: writer process
103 3972 3967 0 0:00.67 ?? 0:00.88 postgres: wal writer process
103 3973 3967 0 0:00.18 ?? 0:00.23 postgres: autovacuum launcher process
103 3974 3967 0 0:00.19 ?? 0:00.21 postgres: stats collector process
0 3616 2726 0 0:00.04 ttys000 0:00.06 su postgres
103 3967 3619 0 0:00.23 ttys000 0:00.34 postgres -D /usr/local/pgsql/data
0 4559 4055 0 0:00.03 ttys001 0:00.05 su postgres
103 5922 4560 0 0:00.01 ttys001 0:00.01 grep postgres
감사합니다.
의 KyngChaos의 맥 빌드를 설치하려고 해요? 설정 파일을 수정 했습니까? 'which psql'과'postgres'가보고하는 것은 무엇입니까? 'ps -eaf | grep postgres'는 무엇을보고합니까? – vyegorov
나는 내 질문에 – Maddy