After installing forem on Heroku and setting everything I've got this annoying error:
ActiveRecord::StatementInvalid (PG::DuplicatePstatement: ERROR: prepared statement "a1" already exists
After digging a little bit and reading some pages on heroku docs, I realized that I should disable prepared statements. The gotcha is that this is information is not present on Heroku docs, only in the README of PgBouncer buildpack that is used by forem.
So, the solution was to set up the environment variable
false. To do that run the following command:
$ heroku config:set PGBOUNCER_PREPARED_STATEMENTS=false
I hope this posts helps people who are trying to deploy forem on Heroku.