Re: Storage of Binary Data

From: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Storage of Binary Data
Date: 2006-07-27 18:03:29
Message-ID: 20060727180329.GF27075@phlogiston.dyndns.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

> For my web projects, we have been storing binary data (like images, PDF's,
> etc) on the hard drive of the web server instead of the database. Within
> the database, we keep information, like whether an image is present, in a
> separate column.

In most cases, this is probably the best approach. It has the
problem that COMMITs of this data aren't atomic (the file write could
succeed and the database write fail, for example). But that can
usually be worked around, and at least you're not bulking your
database with binaries.

A

--
Andrew Sullivan | ajs(at)crankycanuck(dot)ca
This work was visionary and imaginative, and goes to show that visionary
and imaginative work need not end up well.
--Dennis Ritchie

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Scott Marlowe 2006-07-27 18:41:54 Re: Disk is full, what's cool to get rid of?
Previous Message Andrew Sullivan 2006-07-27 16:37:27 Re: Disk is full, what's cool to get rid of?