cannot create extension without superuser role

前端 未结 6 1440
孤街浪徒
孤街浪徒 2020-12-23 11:12

I\'m trying to run unit tests in Django, and it creates a new database. The database has postgis extensions and when I regularly create the database, I use \"CREATE ExTENSIO

6条回答
  •  一向
    一向 (楼主)
    2020-12-23 12:02

    The Django documentation on postgis has some information on setting up user privileges.

    In the worst case you can create a new superuser:

    $ createuser --superuser 
    

    or alter an existing user's role:

    postgres# ALTER ROLE  SUPERUSER;
    

提交回复
热议问题