Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-novice by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group