Re: Silly Question about varchar(n)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Derek Clarkson <dhc(at)bigpond(dot)net(dot)au>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Silly Question about varchar(n)
Date: 2003-01-29 15:37:25
Message-ID: 26523.1043854645@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Derek Clarkson <dhc(at)bigpond(dot)net(dot)au> writes:
> Whats maximum I can put as the length ? - I can't find it in the doco.

I think the parser will complain about N exceeding 10,000,000.

In practice, if you don't have a clear idea of what the upper bound
should be, don't put an upper bound --- use type text. Putting a
meaninglessly large upper bound simply wastes cycles for useless checks.

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Sugrue, Sean 2003-01-29 15:40:22 Re: Good books?
Previous Message Tom Lane 2003-01-29 15:34:01 Re: OIDs - can they be used for accessing records ?