cannot create extension without superuser role

前端 未结 6 1435
孤街浪徒
孤街浪徒 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:06

    As of Postgres 13, some modules / extensions are considered "trusted", and can be installed by non-superusers who have CREATE privilege on the current database.

    The trusted modules are: btree_gin, btree_gist, citext, cube, dict_int, fuzzystrmatch, hstore, intarray, isn, lo, ltree, pgcrypto, pg_trgm, seg, tablefunc, tcn, tsm_system_rows, tsm_system_time, unaccent, uuid-ossp

    To check whether a given module is eligible, visit https://www.postgresql.org/docs/13/contrib.html and select the module in question. If it is considered "trusted", the page will contain the sentence:

    This module is considered “trusted”, that is, it can be installed by non-superusers who have CREATE privilege on the current database.

提交回复
热议问题