0

I am trying to create custom rules for the builtin function unaccent on postgres. Postgres' documentation states 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). It is easy to create on my local data base but I am wondering, how can I do it on heroku?

1 Answer 1

3

There is no way to upload supporting files to the fs on the database host for Heroku Postgres. Heroku Postgres simply does not support this level of custom configuration. They take care of the vast majority of ops on your behalf but it does limit what they can reasonably allow users to change on the system.

Sign up to request clarification or add additional context in comments.

2 Comments

And this isn't unique to Heroku Postgres. Most hosted PostgreSQL services won't permit this. If you want that level of control, administer your own instance on a VPS or something. Alternatively, write a stored procedure instead of using unaccent. Stored procedures should work just fine on Heroku Postgres.
@Chris. I am thinking about writing a stored proc as well. Thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.