Opened 10 years ago

Closed 10 years ago

#21713 closed Bug (fixed)

extension "postgis" already exists' during syncdb

Reported by: Thomas Schreiber Owned by: nobody
Component: GIS Version: 1.6
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no


I am hitting an error on Django 1.7 master, PostgreSQL 9.3.2, postgis 2.1.1. 'django.db.utils.ProgrammingError: extension "postgis" already exists' when running tests.

Changing "CREATE EXTENSION postgis" to "CREATE EXTENSION IF NOT EXISTS postgis" works around the issue.

A pull request is here:

Change History (2)

comment:1 by Claude Paroz, 10 years ago

Triage Stage: UnreviewedReady for checkin

comment:2 by Claude Paroz, 10 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top