#28975: Skip automatic creation of postgis extension if it already exists
-------------------------------------+-------------------------------------
     Reporter:  sphrak               |                    Owner:  sphrak
         Type:                       |                   Status:  closed
  Cleanup/optimization               |
    Component:  GIS                  |                  Version:  2.0
     Severity:  Normal               |               Resolution:
     Keywords:  create extension,    |  worksforme
  postgis, psycopg2, postgresql      |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  1                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

 * status:  assigned => closed
 * component:  Database layer (models, ORM) => GIS
 * resolution:   => worksforme


Comment:

 As Shai said on the mailing list, `CREATE EXTENSION IF NOT EXISTS
 postgis;` doesn't seem to fail if the extension already exists, even if
 the user isn't a superuser. I see `NOTICE:  extension "postgis" already
 exists, skipping` in this case.  Unless I'm misunderstanding the original
 report, I don't see a need to make any changes.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28975#comment:8>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.ba2eae240d83e1e4c0d03e2922eb270f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to