I have incoming xml which is potentially as big as 5M and I need to store it it with postgres 9.1. Which data type should I use ?
bytea
character varying
text
or something else ?
BTW The xml itself contains some binary data in base64 format, does that make any difference when choosing data type in postgres ?
Thank
xmlmaybe? Definitely notbyteaas that is for binary data, varchar and text are effectively the same thing in Postgres (as documented in the manual).