Search Postgresql Archives

Re: more than 2GB data string save

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

 



On Tue, Feb 9, 2010 at 9:38 PM, AI Rumman <rummandba@xxxxxxxxx> wrote:
> How to save 2 GB or more text string in Postgresql?
> Which data type should I use?

If you have to you can use either the lo interface, or you can use
bytea.  Large Object (i.e. lo) allows for access much like fopen /
fseek  etc in C, but the actual data are not stored in a row with
other data, but alone in the lo space.  Bytea is a legit type that you
can have as one of many in a row, but you retrieve the whole thing at
once when you get the row.

Preferred way to store 2GB data is to put it into a file and put the
name of the file into the database.

-- 
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