large object storage

From: Shane Wegner <shane(at)cm(dot)nu>
To: pgsql-general(at)postgresql(dot)org
Subject: large object storage
Date: 2002-04-20 23:53:57
Message-ID: 20020420235357.GA1428@continuum.cm.nu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all,

I am using Pg 7.3 for a document management database. Up
to now, I have been storing documents in the database as
large objects in compressed form. For example, my script
will gzip a pdf document and insert into pgsql. That way
all the metadata relating to the document and the document
itself is in the same place.

However, 4.5 gb of data is taking up approximately 6 gb in
pgsql and I am thinking of moving the documents out and
storing on the filesystem itself. My question is, is there
any other formats (encoding perhaps) I can tell pgsql to
use such that the space usage is better. At present, the
space tradeoff is small but when the database grows, I
imagine as will the wasted space.

Best regards,
Shane

--
http://www.cm.nu/~shane/
PGP: 1024D/FFE3035D
A0ED DAC4 77EC D674 5487
5B5C 4F89 9A4E FFE3 035D

Browse pgsql-general by date

  From Date Subject
Next Message Curt Sampson 2002-04-21 05:13:56 Re: Backup very large databases
Previous Message Tom Lane 2002-04-20 22:40:59 Re: MacOS X and external functions