Received: from mail1.hub.org (webmail.hub.org [216.126.85.1]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f9FNaaP72473 for ; Mon, 15 Oct 2001 19:36:36 -0400 (EDT) (envelope-from news@news.tht.net) Received: from news.tht.net (news.hub.org [216.126.91.242]) by mail1.hub.org (8.11.3/8.11.4) with ESMTP id f9FG5GX50123 for ; Mon, 15 Oct 2001 12:05:16 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.4/8.11.4) id f9FG3L566187 for pgsql-sql@postgresql.org; Mon, 15 Oct 2001 12:03:21 -0400 (EDT) (envelope-from news) From: Vivek Khera X-Newsgroups: comp.databases.postgresql.sql Subject: Re: VARCHAR vs TEXT Date: 15 Oct 2001 12:03:20 -0400 Organization: Khera Communications, Inc., Rockville, MD Lines: 20 Message-ID: References: <200110130354.f9D3sQH01372@candle.pha.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: scrappy@hub.org User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) To: pgsql-sql@postgresql.org X-Archive-Number: 200110/199 X-Sequence-Number: 5154 >>>>> "BM" == Bruce Momjian writes: BM>

CHAR() is best when storing strings that are usually the BM> same length. VARCHAR() is best when storing variable-length strings, BM> but you want to limit how long a string can be. TEXT is for strings BM> of unlimited length, maximum 1 gigabyte. BYTEA is for storing BM> binary data, particularly values that include NULL bytes.

Could you add the length limitation for TEXT to the reference manual? I searched high and low for that limit, but never found it. Also, what's the max VARCHAR() or CHAR() I can create? Is that also 1Gb? Thanks. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Vivek Khera, Ph.D. Khera Communications, Inc. Internet: khera@kciLink.com Rockville, MD +1-240-453-8497 AIM: vivekkhera Y!: vivek_khera http://www.khera.org/~vivek/