将自定义文件存储在 heroku postgres 数据库中



我正在尝试为postgres上的内置函数unaccent创建自定义规则。Postgres的文档指出This file must be stored in $SHAREDIR/tsearch_data/ (where $SHAREDIR means the PostgreSQL installation's shared-data directory). Its name must end in .rules (which is not to be included in the RULES parameter)。在我的本地数据库上创建很容易,但我想知道,如何在 heroku 上做到这一点?

无法将支持文件上传到 Heroku Postgres 数据库主机上的 fs。Heroku Postgres根本不支持这种级别的自定义配置。他们代表您处理绝大多数操作,但它确实限制了他们可以合理地允许用户在系统上进行更改的内容。

最新更新