Re: - Mailing list pgsql-sql

From Pavel Stehule
Subject Re:
Date
Msg-id AANLkTimdcnJjiW55hICUt9a-2HN4tyzETCuyvqb7hkzt@mail.gmail.com
Whole thread Raw
In response to Re:  (silly sad <sad@bankir.ru>)
Responses Re:  (silly sad <sad@bankir.ru>)
List pgsql-sql
2010/7/5 silly sad <sad@bankir.ru>:
> On 07/05/10 10:30, Trinath Somanchi wrote:
>>
>> Hi,
>>
>> I'm new in using BLOB. How will the insert for storing very large byte
>> strings into a column  of data type Blob.
>
> i didn't advice you to use BLOB.
>
> you may store a string as long as 2GB at any TEXT or BYTEA field.

you can do it, but don't do it! Escaping of large strings are not
cheap, processing extra long SQL statements are extreme expensive on
memory - so don't do it - or test it before and check memory and
processor usage - and check it in testing environment with more than
one user.

The good size for text or bytea is less than 100M and real max isn't
2G but it is 1G. LO isn't these limits because it isn't accessable on
SQL level.

Regards
Pavel Stehule
>
> --
> Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-sql
>


pgsql-sql by date:

Previous
From: silly sad
Date:
Subject: Re:
Next
From: Sergey Konoplev
Date:
Subject: Re: How to store Byte strings into a table.