Migration of data from PostgreSQL 9.1.13 to PostgreSQL 9.3
I have the following issue. I have database PostgreSQL version 9.1. I have a second server with PostgreSQL 9.3. I want to move the data from PostgreSQL 9.1 to PostgreSQL 9.3. For that purpose I dumped the data from PostgreSQL 9.1 using the following command:
pg_dump -U postgres -Ft -p 5432 DB_NAME > DUMP_FILE_NAME.bkp.tar
And then I restored it to PostgreSQL 9.3:
pg_restore -U postgres -p 5432 -v -c -O -d NEW_DB_NAME DUMP_FILE_NAME.bkp.tar
The issue is that not the whole data was restored. Part of the tables were missing, a significant part of the functionalities, etc.
So, I have a question, is it possible to migrate the whole data somehow?
I also tried to install PostgreSQL 9.1 on the seconds server but PostgreSQL no longer supports version 9.1. That’s why it was necessary to do that with the help of the source code from here: http://www.postgresql.org/ftp/source/v9.1.13/
Then I followed the instructions:
and few other articles on Internet. Result…nothing. I can’t tun PostgreSQL 9.1 using its source code. Can you please help?