简体   繁体   中英

Cannot backup postgres with pg_dump on os x 10.9 due to version mismatch

I am getting

pg_dump: server version: 9.3.0; pg_dump version: 9.1.4
pg_dump: aborting because of server version mismatch

In my .bash_profile I have

export PATH=/Applications/Postgres.app/Contents/MacOS/bin:$PATH

In my .profile I have

:5432:*:postgres:root
PATH="/Applications/Postgres.app/Contents/Versions/9.3/bin:$PATH"

How do I force postgres to make a simple backup?

I downloaded a new version of postgres 9.3.2 and now it is working. Not sure why, but better than 9.3.0.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM