Update PostGIS extensions on Heroku

拜拜、爱过 提交于 2019-12-25 02:54:15

问题


Everything worked fine, but some time ago rails app response a error.

PG::UndefinedFile: ERROR: could not access file “$libdir/postgis-2.1": No such file or directory

Also now I can't create database backup, it's crashed on table which working whit postgis. Backup will creating if exclude this table.

pg:psql -c "\dx postgis"

postgis 2.1.7

I tried to find a solution to this problem and what I found was:

ALTER EXTENSION postgis UPDATE;

ALTER EXTENSION postgis_sfcgal UPDATE;

ALTER EXTENSION postgis_topology UPDATE;

ALTER EXTENSION postgis_tiger_geocoder UPDATE;

But have error on this command ALTER EXTENSION postgis UPDATE;

ERROR: cannot create temporary table within security-restricted operation

As I understand it, during work command will creating temp table. But in our case we have not permissions to create temp table for user whom was given for me by Heroku postgres.

What solution for this problem have?

来源:https://stackoverflow.com/questions/54213361/update-postgis-extensions-on-heroku

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!