Search Postgresql Archives

Re: Migration from DB2 to PostgreSQL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jun 21, 2013 at 9:40 PM, sachin kotwal <kotsachin@xxxxxxxxx> wrote:
>>as i know each value is limited to 1GB. For larger content use module lo
>>http://www.postgresql.org/docs/9.2/static/lo.html
>
>
> I just want to know that like DB2 we can convert other data types into
> CLOB/BLOB using function CLOB()/BLOB().
>
> Example:
> SELECT CLOB('testdata') FROM SYSIBM.SYSDUMMY1
>
> Same way i want to convert other data types into large objects Oid in
> PostgreSQL.
>
> Proposed SQL will like:
>
> select col1::oid from hoge;
>
> ------OR------
>
> select to_oid('testdata');
>
> Can anyone tell me that how I can implement above function for conversion?
>



Sachin, check if this link is related:
http://stackoverflow.com/a/10139455/683402

+

Here (from official PG docs):
http://www.postgresql.org/docs/9.2/static/largeobjects.html

--
Amit Langote


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux