<div dir="ltr">Hi,<div><br></div><div>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.</div><div><br></div><div>select version();</div></div><br><div class="gmail_quote"><div dir="ltr">пт, 7 сент. 2018 г. в 20:21, David Haynes <<a href="mailto:haynesd2@gmail.com">haynesd2@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr" class="m_-4688739783978255450cye-lm-tag">Hello,<div><br></div><div class="m_-4688739783978255450cye-lm-tag">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. </div><div><br></div><div class="m_-4688739783978255450cye-lm-tag"><div>psql (PostgreSQL) 10.5 (Ubuntu 10.5-1.pgdg14.04+1)</div><div class="m_-4688739783978255450cye-lm-tag">david@david-VirtualBox:~$ psql -d research -c "CREATE EXTENSION postgis;"</div><div class="m_-4688739783978255450cye-lm-tag"><br></div><div class="m_-4688739783978255450cye-lm-tag">ERROR:  could not open extension control file "/usr/share/postgresql/9.3/extension/postgis.control": No such file or directory</div><div class="m_-4688739783978255450cye-lm-tag"><br></div><div class="m_-4688739783978255450cye-lm-tag">The PostGIS control file is at /usr/share/postgresql/10/extension/postgis.control.</div><div class="m_-4688739783978255450cye-lm-tag">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.</div></div><div><br></div></div></div>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a></blockquote></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Darafei Praliaskouski<br>Support me: <a href="http://patreon.com/komzpa">http://patreon.com/komzpa</a></div></div>