Postgres' text column doesn't like my zlib compressed data

陌路散爱 提交于 2019-12-12 11:42:33

问题


Is there a better data type to be using to store a zlib compressed string in Postgresql?


回答1:


Use bytea "The bytea data type allows storage of binary strings"




回答2:


Use a bytea. Zip compressed data is not a text.



来源:https://stackoverflow.com/questions/2958073/postgres-text-column-doesnt-like-my-zlib-compressed-data

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!