PGError: ERROR: permission denied for relation (when using Heroku)

后端 未结 6 785
悲哀的现实
悲哀的现实 2020-12-13 03:22

I\'ve recently gone through the database migration process as outlined here:

https://devcenter.heroku.com/articles/migrating-from-shared-database-to-heroku-postgres<

6条回答
  •  既然无缘
    2020-12-13 04:04

    After deleting the extra rows, you won't get the insert privileges back immediately. In that case, delete the extra rows and just run heroku pg:info after that. This will refresh the privileges of your DB and you will get the access back in few minutes. Its not required to clone the existing DB into a new one and setting the new one as the DB of your app.

    $ heroku pg:info
    
    === HEROKU_POSTGRESQL_BRONZE_URL, DATABASE_URL
    Plan:        Hobby-dev
    Status:      Available
    Connections: 3/20
    PG Version:  9.3.6
    Created:     2014-03-01 13:47 UTC
    Data Size:   1.25 GB
    Tables:      4
    Rows:        2098/10000 (Write access revoked) - refreshing
    Fork/Follow: Unsupported
    Rollback:    Unsupported
    Add-on:      grinning-busily-5587
    

提交回复
热议问题