Re: binary data and TEXT

From: Jason Earl <jdearl(at)yahoo(dot)com>
To: "Martin A(dot) Marques" <martin(at)math(dot)unl(dot)edu(dot)ar>, PostgreSQL Users <pgsql-general(at)postgresql(dot)org>
Subject: Re: binary data and TEXT
Date: 2000-10-27 04:43:11
Message-ID: 20001027044311.9344.qmail@web10001.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hey there Martin,

--- "Martin A. Marques" <martin(at)math(dot)unl(dot)edu(dot)ar>
wrote:
> Hi, I have a par of questions.
>
> 1) I've read alot abot the 8K row limitation on
> pgsql. What would happen if I
> had a table defined with two columns, one serial and
> the other TEXT, and in
> one insert the texct that goes in the column with
> type TEXT has 80K or even
> more?

I actually am not sure what happens exactly, but I
would bet that it would make you unhappy.
Historically if you wanted to save something in the
database that had a tendency to get large you needed
to either:

A) Cut it up into smaller bits and store it in several
tuples.
B) Store it as a Large Object (which is a whole
separate API).

Fortunately, the PostgreSQL team has finally worked
around this limitation with the new TOAST code in the
upcoming release. If you are just starting to develop
your application you might consider taking a look at
the CVS version of PostgreSQL and coding against that.

> 2) Is it posible to storage binary data in the
> database? I've been looking
> for a byte type in the manuals with no luck at all.
>
> Thanks.

Look for Large Object if you want to see how something
like this is currently done. Or just get the CVS
version and see how bright the future is looking.

Jason

__________________________________________________
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf! It's FREE.
http://im.yahoo.com/

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2000-10-27 04:55:17 Re: 7.0 vs. 7.1 (was: latest version?)
Previous Message Igor Roboul 2000-10-27 04:23:42 functions which return tuples