Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id BB551475AFF for ; Thu, 22 Aug 2002 09:34:12 -0400 (EDT) Received: from web20417.mail.yahoo.com (web20405.mail.yahoo.com [66.163.169.93]) by postgresql.org (Postfix) with SMTP id 0D6F34759B0 for ; Thu, 22 Aug 2002 09:34:12 -0400 (EDT) Message-ID: <20020822133416.86495.qmail@web20417.mail.yahoo.com> Received: from [212.45.22.233] by web20405.mail.yahoo.com via HTTP; Thu, 22 Aug 2002 06:34:16 PDT Date: Thu, 22 Aug 2002 06:34:16 -0700 (PDT) From: Andrew Klimov Subject: bytea etc. To: pgsql-sql@postgresql.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-281263480-1030023256=:85244" X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/311 X-Sequence-Number: 9157 --0-281263480-1030023256=:85244 Content-Type: text/plain; charset=us-ascii Hi , All! Could someone clarify me : When I want to store BLOB's internally in database (for example jpeg )should I use bytea or OID? Is OID something like BFILE in Oracle 8i? If both are appropriate for internal BLOB why I can't use update image set picture=lo_import('Myfile') where image_code='blablabla' ; with bytea column type but only with OID column type? And one more thing:Where is function byteain documented? TIA,Andrew. --------------------------------- Do You Yahoo!? HotJobs, a Yahoo! service - Search Thousands of New Jobs --0-281263480-1030023256=:85244 Content-Type: text/html; charset=us-ascii
Hi , All!
 
Could someone clarify me  :
 
When I want to store BLOB's internally in database (for example jpeg )
should I use bytea or OID? Is OID something like BFILE in Oracle 8i?
 
If both are appropriate for internal BLOB why I can't use
 
update image set picture=lo_import('Myfile') where image_code='blablabla' ;
 
with bytea column type but only with OID column type?
 
 
And one more thing:
Where is function byteain documented?
 
TIA,
Andrew.



Do You Yahoo!?
HotJobs, a Yahoo! service - Search Thousands of New Jobs --0-281263480-1030023256=:85244--