I thought I’d checked app.yml but yes, it was set to postgres 10. That fixed my build problem.
Thanks for the hint.