I am trying to upgrade my Postgres version 9.2 to 9.6 and failing. My strategy was to follow the standard advice for Postgres databases and use pg_dumpall. This does not appear to work if you are using PostGIS extensions because the dump contains 1000s of references to the actual PostGIS library on disk. See this.
So how does one move around PostGIS databases without links to actual libraries embedded in them?