If you’re using PgBouncer you need to set binary_parameters=yes to your database dsn connection as a query parameter