From: | "Bryan \(Mailing Lists\)" <bryan_lists(at)netmeme(dot)org> |
---|---|
To: | <pgsql-interfaces(at)postgresql(dot)org> |
Subject: | Re: JDBC and long TEXT fields |
Date: | 2000-12-03 04:40:46 |
Message-ID: | 00db01c05ce3$341f1e00$54ed90cc@netmeme.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces |
Looking at the User's Guide, Chapter 3, Character Types:
http://www.postgresql.org/docs/user/x1069.htm
It describes char, char(n), text, and varchar(n).
char is described as "single character"
char(n) is described as "fixed length"
text is described as "variable-length"
varchar(n) is described as "variable-length with limit"
Since three out of four of these types are described as having limits, my
interpretation is that the TEXT type does not have any limit. Evidently that
was a faulty assumption on my part, but the docs could stand to be a little
more clear.
Docs aside, I'm looking for a data type that will hold lengthy stings, > 8k.
Evidently a blob is what I need to use? But I don't see blobs listed as a
data type under Table 3-1, "Postgres Data Types".
http://www.postgresql.org/docs/user/datatype.htm
More direction would be appreciated..
Thanks again in advance,
Bryan
----- Original Message -----
From: "Thomas Lockhart" <lockhart(at)alumni(dot)caltech(dot)edu>
To: "Bryan (Mailing Lists)" <bryan_lists(at)netmeme(dot)org>
Cc: <pgsql-interfaces(at)postgresql(dot)org>
Sent: Saturday, December 02, 2000 9:28 PM
Subject: Re: [INTERFACES] JDBC and long TEXT fields
> > I am trying to insert rows into a table containing a field of type
"TEXT".
> > The documentation says there is no limit to the size of this field; yet,
> > when I try to insert or update a row with a field contents of around
10k, I
> > get an error from the JDBC driver...
>
> As Greg points out, there is an upper limit. I would hope that the docs
> say that TEXT has no *fixed* limit, unlike SQL9x types char() and
> varchar().
>
> Let us know if that is not what the docs say (and where they don't say
> that ;) and we'll get them fixed up. Though for the next release there
> is only a huge upper limit, in principle.
>
> - Thomas
From | Date | Subject | |
---|---|---|---|
Next Message | Robert B. Easter | 2000-12-03 07:39:25 | Re: JDBC and long TEXT fields |
Previous Message | Thomas Lockhart | 2000-12-03 04:28:44 | Re: JDBC and long TEXT fields |