PostgreSQL XML data and Elixir / Ecto?

The post about “saviour” comment on github was about the fact that even if you create a custom Ecto type, you still cannot access XML data (even as string) from PostgreSQL column of XML type as you’ll get “type ‘xml’ can not be handled” errors. The solution is to add Postgrex.Extension implementation that treats it as text I presume. Not something exceptionally elegant I’d say (if I understood all of it) :wink: And - TBH - the quote of the author there:

I don’t grok some of the quote stuff yet or matching on the encoded binaries, so I’m not sure if this is right, but it works

applies directly to me too :slight_smile:

IOW - it was about getting the XML data out of the column “at all” and hence as string.