pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vivek Khera <khera@kcilink.com>
To: pgsql-sql@postgresql.org
Subject: Re: VARCHAR vs TEXT
Date: 15 Oct 2001 12:03:20 -0400
Message-ID: <x7vghgki0n.fsf@onceler.kciLink.com> (raw)
References: <200110130354.f9D3sQH01372@candle.pha.pa.us>

>>>>> "BM" == Bruce Momjian <pgman@candle.pha.pa.us> writes:

BM>     <P>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.</P>

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/



view thread (11+ messages)  latest in thread

Message-ID: <x7vghgki0n.fsf@onceler.kciLink.com>
Permalink:  ../x7vghgki0n.fsf@onceler.kciLink.com/
Also on:    postgresql.org/message-id/x7vghgki0n.fsf@onceler.kciLink.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: khera@kcilink.com
  Subject: Re: VARCHAR vs TEXT
  In-Reply-To: <x7vghgki0n.fsf@onceler.kciLink.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox