I am receiving this error when I create extension postgis;
:
SQL Error [58P01]: ERROR: could not open extension control file "C:/POSTGR~1/10.5/pg10/../pg10/share/postgresql/extension/postgis.control": No such file or directory
The cause appears to be an incorrect path (an extra postgresql). It should be:
"C:/POSTGR~1/10.5/pg10/../pg10/share/extension/postgis.control"
This PostGIS installer that I used is: http://download.osgeo.org/postgis/windows/pg10/postgis-bundle-pg10x64-setup-2.5.0-1.exe
And I am running PostgreSQL 10.5 on x86_64-pc-mingw64, compiled by gcc.exe (Rev5, Built by MSYS2 project) 4.9.2, 64-bit
While my question is a near duplicate of https://gis.stackexchange.com/a/71476/31, the issue is specific to PostgreSQL 10/PostGIS 2.5, and I don't think the answer is necessarily the same (since there is no spatial_ref_sys.sql file).
Is there way to correct the error? If not, which files in the extension directory have to run (and in which order) to create the PostGIS extension?
postgresql-XX-postgis-Y.Z-scripts
provides the matching file associations. Here is the installation part of a working Dockerfile: ``` FROM ubuntu:18.04 RUN apt-get update && apt-get install -y \ software-propertie