X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 3FADB329DCD for ; Mon, 13 Sep 2004 11:06:41 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 24565-02 for ; Mon, 13 Sep 2004 10:06:35 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 4DE6B329DAE for ; Mon, 13 Sep 2004 11:06:36 +0100 (BST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i8DA6XCp025464 for ; Mon, 13 Sep 2004 10:06:34 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i8D9o2E7020262 for pgsql-sql@postgresql.org; Mon, 13 Sep 2004 09:50:02 GMT From: Christopher Browne X-Newsgroups: comp.databases.postgresql.sql Subject: Re: what is maximum size of "text" datatype in postgres? Date: Mon, 13 Sep 2004 05:31:30 -0400 Organization: cbbrowne Computing Inc Lines: 48 Message-ID: References: <20040913083554.9110.qmail@web53107.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@news.hub.org X-message-flag: Outlook is rather hackable, isn't it? X-Home-Page: http://www.cbbrowne.com/info/ X-Affero: http://svcs.affero.net/rm.php?r=cbbrowne User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through Obscurity, linux) Cancel-Lock: sha1:wutjyhs43Et9ftxh8h68RhhH4yM= To: pgsql-sql@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200409/94 X-Sequence-Number: 18940 Centuries ago, Nostradamus foresaw when smitamarda@yahoo.co.uk ("Smit") would write: > i wanted to know, what is maximum size of "text" > datatype in postgres. > It is given as "unlimited characters" in the postgres > documentation. > But it doesn't store characters more than 5000. The > connection get lost if i tried to store more than 5000 > characters. > > I had read somewhere on forum that its max limit is 8 > bytes, and we can increase it to 32 bytes. 8 bytes is certainly not the right answer. Creating a little table, and throwing some wide strings at it... tutorial=# create table widetext (main text); CREATE tutorial=# insert into widetext values ('0123456789... repeated a bunch of times...'); INSERT 2625519 1 ... increasing size each time, for several instances ... tutorial=# select length(main) from widetext; length -------- 1100 5500 11000 (3 rows) That's way more than 8 bytes; that's way more than 5000 bytes. > Do any one know how to increse it? or do anyone know any other way > to solve this problem. What tool are you using to insert the data? Is it possible that it has some buffer size limitation that is biting you? -- "cbbrowne","@","ntlug.org" http://linuxfinances.info/info/ "My experience as a member of the APB (Accounting Principles Board) taught me many lessons. A major one was that most of us have a natural tendency and an incredible talent for processing new facts in such a way that our prior conclusions remain intact." -- Charles Horngren