I'm trying to dump my postgres database using pg_dump. When I execute the command I get the following error:
pg_dump: server version: 9.5rc1; pg_dump version: 9.4.5
pg_dump: aborting because of server version mismatch
I understand there a fair amount of quality answers to this question such as:
How to fix pg_dump version mismatch errors?
These answers say that I should change the path to postgres using
PATH="/Applications/Postgres.app/Contents/MacOS/bin:$PATH"
I don't really understand where I should put code such as this or exactly what it is doing. I would really like to know how this works conceptually.