We have postgreSQL 9.6 installed for our product using PostgreSQL interactive installer (postgresql-9.6.17-1-linux-x64.run) in Linux. Now we wanted to upgrade it to 10.13 using (postgresql-10.13-1-linux-x64.run). While doing it, getting below error.
The existing data directory (catalog version: 201608131) is not compatible with this server (catalog version: 201707211)
Can anyone have some insight on this? Thanks in advance.
- Ramesh
You will hit this error with each major release: 9.5 to 9.6, 9.6 to 10, 10 to 11, etc. It is advisable to have your repository in seperate directories for each version: /home/postgres/9.6/data etc. pg_upgrade will take care of the dirty work.