-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use "CREATE EXTENSION postgis; ..." on Ubuntu trusty #156
Conversation
As described here: https://docs.djangoproject.com/en/1.6/ref/contrib/gis/install/postgis/#creating-a-spatial-database-with-postgis-2-0-and-postgresql-9-1 ... creating a PostGIS database should be done with "CREATE EXTENSION postgis; CREATE EXTENSION postgis_topology;" where PostGIS and PostgreSQL are late enough versions, rather than the script to create a template_postgis template. The only supported distribution where we have these versions is currently Ubuntu trusty.
On Ubuntu 14.04 (Trusty Tahr) the script for creating template_postgis doesn't work, and PostGIS support should be added via CREATE EXTENSION instead. Any project that uses install_postgis and has been updated to use this version of commonlib should be updated; for example the corresponding changes for MapIt are here: mysociety/mapit#156
On Ubuntu 14.04 (Trusty Tahr) the script for creating template_postgis doesn't work, and PostGIS support should be added via CREATE EXTENSION instead. Any project that uses install_postgis and has been updated to use this version of commonlib should be updated; for example the corresponding changes for MapIt are here: mysociety/mapit#156
I guess this could future-proof a bit and put debian jessie in already? That looks to have 9.4/2.1. |
Also, looking at our |
Not sure if it will affect this or not, but FYI, it looks like Django 1.8 is going to call |
Django uses |
On Ubuntu 14.04 (Trusty Tahr) the script for creating template_postgis doesn't work, and PostGIS support should be added via CREATE EXTENSION instead. Any project that uses install_postgis and has been updated to use this version of commonlib should be updated; for example the corresponding changes for MapIt are here: mysociety/mapit#156 Also fix the version of the Django script used to one that still supports Debian squeeze.
As described here:
https://docs.djangoproject.com/en/1.6/ref/contrib/gis/install/postgis/#creating-a-spatial-database-with-postgis-2-0-and-postgresql-9-1
... creating a PostGIS database should be done with
"CREATE EXTENSION postgis; CREATE EXTENSION postgis_topology;"
where PostGIS and PostgreSQL are late enough versions, rather
than the script to create a template_postgis template.
The only supported distribution where we have these versions is
currently Ubuntu trusty.