Re: [GENERAL] maximal length of varchar - Mailing list pgsql-general

From Bruce Momjian
Subject Re: [GENERAL] maximal length of varchar
Date
Msg-id 199906241608.MAA17542@candle.pha.pa.us
Whole thread Raw
In response to Re: [GENERAL] maximal length of varchar  (guenther mair <mairg@efferd.nettz.com>)
List pgsql-general
>
> > prova=> create table a1(a varchar(99999));
> > ERROR:  length for type 'varchar' cannot exceed 8064
> > prova=> create table a1(a varchar(8064));
> > CREATE
>
> thanks, for this quick answer!
>
> i did the test by myself and found out, that on the my system (freebsd
> 3.2) where i do actualy my tests, varchar is limited to 4096. this creates
> the problem of plattfrom dependence.

I changed This in 6.5 to something near 8k.  It may be too large because
I am not sure how a row is going to be updated inside the page.  Not
sure if this is an issue.


--
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [GENERAL] Limitation
Next
From: "Roeland M.J. Meyer"
Date:
Subject: RE: [GENERAL] Limitation