Discourse appears to be broken with Postgres 10

We are not seeing it in our official install, my guess is that this is somehow postgres 10 related.

What version of pg are you using?