From: | richard terry <rterry(at)pacific(dot)net(dot)au> |
---|---|
To: | pgsql-novice(at)postgresql(dot)org |
Subject: | Re: bytea and text |
Date: | 2009-11-27 23:50:44 |
Message-ID: | 200911281050.44256.rterry@pacific.net.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
On Friday 27 November 2009 02:58:01 Tom Lane wrote:
> "Jean-Yves F. Barbier" <12ukwn(at)gmail(dot)com> writes:
> > I'm asking myself what solution for storing pictures is the best:
> >
> > * using a BYTEA column type, and having no intrinsic compression gain
> > because a picture it almost every time already compressed,
> >
> > * using a TEXT column type, and store a Base64(picture) in it; it should
> > take benefits of intrinsic compression (?).
>
> At best, the compression would get rid of the overhead you added by
> converting to base64. It probably wouldn't completely succeed at that,
> though, meaning the second alternative is always a loser.
>
> regards, tom lane
>
tom, I wonder if you could give us a sample of using client side lo_creat ,
insert functions to insert a blob into postgres - in an sql statement.
Despite reading the docs's I'm totally in the dark and can't understand the
syntax.
Regards
richard (using gambas basic)
From | Date | Subject | |
---|---|---|---|
Next Message | Syan Tan | 2009-11-28 00:00:06 | Re: bytea and text |
Previous Message | Rikard Bosnjakovic | 2009-11-27 19:05:15 | Extracting special case from a player table without union |