16.20 - Document Size Limitation and Encoding - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantageā„¢ XML Data Type

Teradata Database
Teradata Vantage NewSQL Engine
Release Number
Release Date
March 2019
Content Type
Programming Reference
Publication ID
English (United States)

There is a 2 GB limit on the size of XML documents. If you request a document in an encoding that results in a document larger than 2 GB, an error is raised. For example, you may have a large document encoded in ASCII which is 1.5 GB and fits under the 2 GB limit. However, if you request a serialization with UTF-16 encoding, the size of such an encoding would be larger than the 2GB limit because UTF-16 is a double-byte encoding, and this would result in an error.