From: | Medi Montaseri <medi(dot)montaseri(at)intransa(dot)com> |
---|---|
To: | Prachi Jain <prachijain3(at)rediffmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Using Image datatype in Postgres |
Date: | 2002-12-17 19:12:19 |
Message-ID: | 3DFF7713.30202@intransa.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
create SomeTable
(
name varchar(10),
image oid
);
insert into SomeTable (name, image) values ('foo.gif',
lo_import('/web/some.gif'));
ie
Bag of Bits is called Large Objects in PG and you'll use a couple of
auxilary methods
to handle them; lo_import() and lo_export().
I myself don't understand the relation between OID and Large Object....
Could be historic stuff....or when I read it, i was sleepy....
Prachi Jain wrote:
> Hello All,
>
> I am migrating from MSSQLServer to Postgres. I was using image
> datatype in one of my table. Is there any replacement for the same in
> Postgres???
>
> Please guide.
> thanks and regards
> Prachi Jain
>
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
From | Date | Subject | |
---|---|---|---|
Next Message | scott.marlowe | 2002-12-17 19:22:06 | Re: Using Image datatype in Postgres |
Previous Message | Greg Stark | 2002-12-17 18:46:42 | Re: ORDER BY random() LIMIT 1 slowness |