Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 6FEB84762AE for ; Tue, 3 Sep 2002 14:51:56 -0400 (EDT) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by postgresql.org (Postfix) with SMTP id 38D16475F4B for ; Tue, 3 Sep 2002 14:51:30 -0400 (EDT) Received: (qmail 31256 invoked by uid 0); 3 Sep 2002 18:51:19 -0000 Received: from pd902f08c.dip0.t-ipconnect.de (217.2.240.140) by mail.gmx.net (mp006-rz3) with SMTP; 3 Sep 2002 18:51:19 -0000 Date: Tue, 3 Sep 2002 20:55:37 +0200 (CEST) From: Peter Eisentraut X-X-Sender: peter@localhost.localdomain To: Hubert depesz Lubaczewski Cc: pgsql-docs@postgresql.org Subject: Re: wrong information about unlimied size of text field? In-Reply-To: <20020903125655.GA24879@depesz.pl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/15 X-Sequence-Number: 1467 Hubert depesz Lubaczewski writes: > according to what i know, where is a limit for up to 2gigabytes of data > in text fields (according to c.h). > this limit is of course very big, but i belive it should be mentioned in > datatype.sgml instead of saying: If you continue reading you will find The storage requirement for data of these types is 4 bytes plus the actual string, and in case of character plus the padding. Long strings will be compressed by the system automatically, so the physical requirement on disk may be less. In any case, the longest possible character string that can be stored is about 1 GB. (The maximum value that will be allowed for n in the data type declaration is less than that. It wouldn't be very useful to change this because with multibyte character encodings the number of characters and bytes can be quite different anyway. If you desire to store long strings with no specific upper limit, use text or character varying without a length specifier, rather than making up an arbitrary length limit.) which seems to be the information you are looking for. -- Peter Eisentraut peter_e@gmx.net