Re: large string storage in Postgresql

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: large string storage in Postgresql
Date: 2010-01-17 06:34:18
Message-ID: 4B52AF6A.4020905@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

AI Rumman wrote:
> I have an individual text string of 2 GB.
> I may use Postgresql 8.4 also. But what data type should I use to
> store this column value of 2GB?

GB data objects ni a database is going to make backups, maintenance, etc
a real pain

normal data in postgres can not be over 1GB, so you will need to use the
Larg OBJect facility, where you store an object ID in your actual table,
then store the data via a special Large Object api,
http://www.postgresql.org/docs/current/static/lo-interfaces.html which
can handle up to 2GB max.

quite frankly, i'd as soon store stuff that large as files and and store
their path in the database.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message John R Pierce 2010-01-17 06:40:58 Re: large string storage in Postgresql
Previous Message Craig Ringer 2010-01-17 06:28:18 Re: large string storage in Postgresql