2

In PostgreSQL on heroku I need to add extension of PostGIS. For it I run

heroku pg:psql

When I run

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

It gives error

ERROR:  permission denied to create extension "postgis"
HINT:  Must be superuser to create this extension.
Haseeb Ahmad
  • 7,914
  • 12
  • 55
  • 133

1 Answers1

1

What is the database plan you're trying to create the postgis extension?
Postgis is only available for production databases, because hobby ones are sharing the same server with several other ones, and postgis is usually very CPU-bound, which would impact the performance of all other customer databases.

See 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.

Damien MATHIEU
  • 31,924
  • 13
  • 86
  • 94