[postgis-users] Creating postGIS extension

Darafei "Komяpa" Praliaskouski me at komzpa.net
Fri Sep 7 10:26:22 PDT 2018


Hi,

Check that you are indeed connecting to Postgres 10 database. It looks like
you are connecting to 9.3 instance. Likely you need to change port in your
psql connection parameters.

select version();

пт, 7 сент. 2018 г. в 20:21, David Haynes <haynesd2 at gmail.com>:

> Hello,
>
> I'm having a bit of trouble getting the PostGIS extension on a new VM. It
> seems there were some earlier conflicts between gdal 2.0, but I have
> resolved them. However, I can't create the PostGIS extension.
>
> psql (PostgreSQL) 10.5 (Ubuntu 10.5-1.pgdg14.04+1)
> david at david-VirtualBox:~$ psql -d research -c "CREATE EXTENSION postgis;"
>
> ERROR:  could not open extension control file
> "/usr/share/postgresql/9.3/extension/postgis.control": No such file or
> directory
>
> The PostGIS control file is at
> /usr/share/postgresql/10/extension/postgis.control.
> How can I point the server to this directory? Should I remove the older
> versions of PostgreSQL and leave only version 10. There isn't any data
> loaded.
>
> _______________________________________________
> postgis-users mailing list
> postgis-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/postgis-users

-- 
Darafei Praliaskouski
Support me: http://patreon.com/komzpa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20180907/15c1438c/attachment.html>


More information about the postgis-users mailing list