Postgres的文本列不喜欢我的zlib压缩数据 [英] Postgres' text column doesn't like my zlib compressed data

查看:295
本文介绍了Postgres的文本列不喜欢我的zlib压缩数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有更好的数据类型用于在Postgresql中存储zlib压缩字符串?

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

推荐答案

使用< =http://www.postgresql.org/docs/8.4/interactive/datatype-binary.html =nofollow noreferrer> bytea bytea数据类型允许存储二进制字符串

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

这篇关于Postgres的文本列不喜欢我的zlib压缩数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆