“ TEXT”的最大大小为PostgreSQL中的数据类型 [英] Maximum size of "TEXT" datatype in postgresql
本文介绍了“ TEXT”的最大大小为PostgreSQL中的数据类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用python。
I am working with python.
我在postgres中有一个带有文本数据类型的字段。每当我尝试保存一个非常大的字符串时,它都会在python中引发内部错误,但是如果我以较小的尺寸保存该字符串,它将正确地保存它。
I have a field with "text" datatype in postgres. Whenever I try to save a very large string, it throws internal error in python, but if I save the string with a smaller size, it saves it properly.
我不不明白问题所在。
I don't understand the problem. Is it that there is some maximum limit for entering the characters for "TEXT" datatype?
推荐答案
从手册:
在任何情况下,可以存储的最长字符串
约为1 GB。
In any case, the longest possible character string that can be stored is about 1 GB.
这篇关于“ TEXT”的最大大小为PostgreSQL中的数据类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文