I am trying to upload a database that I developed locally to our development server.
I installed PostgreSQL 9.1 on my machine and the development server uses 8.4.
When I try to restore the database to 8.4 using the dump file created using 9.1, I get an error message:
pg_restore: [archiver (db)] could not execute query: ERROR: syntax error at or near "EXTENSION" LINE 1: CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalo...
and quick research tells me that "EXTENSION" does not exist until 9.1.
I'm not sure if I need to find an option in pg_dump that ignores "extensions", since the database I'm trying to load depends on the PostGIS extension for most of the data.
During the upgrade of the PostGIS development and installation server, there is an option in the dev server, I would like to know about another route in which I do not need to edit anything on the server, while maintaining the database functions I developed.
Of course, other workarounds are welcome, the only purpose of uploading my database to the server is to reduce the amount of reconfiguration that I have to perform in my project when I need to deploy something for our team.
source share