必须是超级用户才能创建此扩展

Must be superuser to create this extension

在 heroku 上的 PostgreSQL 中,我需要添加 PostGIS 的扩展。 为此我运行

heroku pg:psql

当我运行

looks-test::DATABASE=> create extension postgis;

报错

ERROR:  permission denied to create extension "postgis"
HINT:  Must be superuser to create this extension.

您尝试创建 postgis 扩展程序的数据库计划是什么?
Postgis 仅适用于生产数据库,因为业余爱好者与其他几个数据库共享同一台服务器,并且 postgis 通常非常 CPU-bound,这会影响所有其他客户数据库的性能。

https://devcenter.heroku.com/articles/postgis

The beta is available on all Production tier databases and currently supports PostGIS version 2.0. It is not available on the Dev or Basic Hobby tier plans.