Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

create postgis extension syntax error at or near "PARALLEL"

When I try to enable the postgis extension in postgresql on windows I get the following error:

syntax error at or near "PARALLEL"

I have been looking, but cannot find anyone with this error. Any help?

like image 432
Jens de Bruijn Avatar asked Oct 12 '16 09:10

Jens de Bruijn


People also ask

Is PostGIS an extension?

PostGIS is an extension to PostgreSQL for storing and managing spatial information. To learn more about PostGIS, see PostGIS.net . Starting with version 10.5, PostgreSQL supports the libprotobuf 1.3. 0 library used by PostGIS for working with map box vector tile data.

Does Postgres come with PostGIS?

However, Postgres. app has been adding support for other extensions, and now comes with support for PostGIS, PLV8 and MVT already built in. If you want PgRouting, you can use Homebrew to install the dependencies it needs, and build it from source.

What is PostGIS Sfcgal?

SFCGAL, a C++ wrapper library around CGAL that supports ISO 19107:2013 and OGC Simple Features Access 1.2 for 3D operations, is now an optional included in PostGIS. This was a quiet outcome of the Boston Code Sprint after Paul Ramsey declared exact rational number representation would not make its way into PostGIS.


2 Answers

While I had PostgreSQL 9.5 installed, I was using PostGIS intended for version 9.6. This caused the error.

Credits to a_horse_with_no_name

like image 150
Jens de Bruijn Avatar answered Oct 17 '22 10:10

Jens de Bruijn


I just had the same error and solved it with the good old restart procedure:

# install or upgrade postgres and postgis
brew upgrade postgres
brew upgrade postgis

# drop extension in case of an update
DROP EXTENSION postgis

# restart postgres
pg_ctl -D /usr/local/var/postgres stop -s -m fast
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start

# create extension
CREATE EXTENSION postgis

I think restarting postgres was the important step to resolve the issue.

like image 21
baltendo Avatar answered Oct 17 '22 11:10

baltendo