Re: BLOB problem

From: Doug McNaught <doug(at)mcnaught(dot)org>
To: Rens Admiraal <postgresnews(at)etraned(dot)nl>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: BLOB problem
Date: 2004-02-03 13:54:15
Message-ID: 8765eop8u0.fsf@asmodeus.mcnaught.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Rens Admiraal <postgresnews(at)etraned(dot)nl> writes:

> I've encountered a problem with a PostgreSQL database. I made a image
> management system which stores images in a database from a PHP script.
> I upload te file using pg_lo_import() (PHP function). Everything works
> fine, fast, and I was really glad with it, till I found out that my
> database is rapadly growing. With only 20 images the database has a
> size of 65 MB !!!

Are you running VACUUM regularly? You might want to do a VACUUM FULL
and see if the size goes down again.

The other possibility is that you're not dropping large objects when
they're superseded by new ones. If you never call lo_unlink() in your
code that's probably what's happening.

-Doug

In response to

Browse pgsql-general by date

  From Date Subject
Next Message C G 2004-02-03 14:16:06 Copy and xml files
Previous Message Rens Admiraal 2004-02-03 11:28:17 BLOB problem