Re: Re[2]: TEXT vs VARCHAR - Mailing list pgsql-general

From Tom Lane
Subject Re: Re[2]: TEXT vs VARCHAR
Date
Msg-id 20760.971214625@sss.pgh.pa.us
Whole thread Raw
In response to Re[2]: TEXT vs VARCHAR  (Jean-Christophe Boggio <cat@thefreecat.org>)
Responses Re: Re[2]: TEXT vs VARCHAR  (David Huttleston Jr <dhjr@hddesign.com>)
List pgsql-general
Jean-Christophe Boggio <cat@thefreecat.org> writes:
>>> is there a limit on the upper limit of a VARCHAR?  i cannot find one in the
>>> documentation.

TL> The physical limit is circa 1Gb under TOAST.

> Excuse me, what is the 8kb-per-record size limit if we can have so
> big fields ?

Sorry --- TOAST is 7.1.  In existing releases, TEXT, VARCHAR, and CHAR
are all constrained by the BLCKSZ limit on total row size.  But still,
that offers no reason for choosing TEXT over VARCHAR or vice versa.

            regards, tom lane

pgsql-general by date:

Previous
From: Vince Vielhaber
Date:
Subject: Re: Re: [HACKERS] My new job
Next
From: Jason Earl
Date:
Subject: Re: Re: [HACKERS] My new job