| From: | roypgsqlgen(at)xemaps(dot)com |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | confused on maximum characters |
| Date: | 2001-08-16 15:26:11 |
| Message-ID: | 200108161526.f7GFQSP37182@postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Hey guys,
I'm a little confused by the documentation on varchar data type in postgresql.
Looking at the docs Peter Eisentraut added this note at the bottom of the documentation for character data.
---
The maximum value for "n" is 2147483648. The longest possible string is actually only about 1 GB, though. The storage size of "(4+n)" is actually incorrect: char(n) really takes 4+n but varchar(n) and text take 4 plus the actual length of the stored string. Long strings will actually be compressed by the system, though.
---
So does this mean I can specify very large varchar column types, like say varchar(1024)?
And what does he mean by 'Long strings will actually be compressed by the system'?
Thanx.
Roy.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Colin 't Hart | 2001-08-16 15:36:21 | Re: Roll Back dont roll back counters |
| Previous Message | Michelle Murrain | 2001-08-16 15:18:01 | ODBC error |