I have a problem loading an xml on an xml field of a table.
The load is done by ruby code, but this is not the point.
Everything worked well for years, but xml is increasing size....
So one day, today, xml is near 12 megabytes. Sysadmin called dba (me): the service is not working!
I did some test. Result is: when I test this query:
SELECT * FROM XMLPARSE(DOCUMENT convert_from(pg_read_binary_file('xmlstuff.xml'), 'UTF8'))
It works fine on Postgresql 9.3
It gives me this in 9.1 in production or test:
ERROR: invalid XML document
DETAIL: Entity: line 1: parser error : internal error
Entity: line 1: parser error : Extra content at the end of the document
Any workaround for this? I'm planning an upgrade in the next months, but I have the problem now :-(