Re: Where to store Blobs?

From: Chuck Martin <clmartin(at)theombudsman(dot)com>
To: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
Cc: Thomas Güttler <guettliml(at)thomas-guettler(dot)de>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Where to store Blobs?
Date: 2019-03-13 15:38:49
Message-ID: CAFw6=U1DBKeTSE0Kgt+mJnZEJnFXKsQuddRPKJGoaWZYNzmYMw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I store them as bytea in the database despite the fact that there are
benefits to storing them in the file system. The reason is that it is
easier to secure access to the database than to secure both the database
and provide secure access to the file system.

Chuck Martin
Avondale Software

On Wed, Mar 13, 2019 at 10:34 AM Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
wrote:

> Thomas Güttler wrote:
> > Now I realized: Nobody talked about Blobs.
> >
> > I guess most people do not store Blobs in PostgresSQL.
> >
> > Where do you store Blobs?
> >
> > (In my case Blobs are PDF/image files with size up to 20 MByte.
> > I do not talk about very big blobs which are several hundret MByte)
>
> Ideally outside the database, if they are many.
> Large databases are harder to backup than large file systems.
>
> If you keep 20MB binaries in the database, you'd use the "bytea" data type.
>
> Yours,
> Laurenz Albe
> --
> Cybertec | https://www.cybertec-postgresql.com
>
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Christopher Browne 2019-03-13 15:50:37 Re: Where to store Blobs?
Previous Message Ron 2019-03-13 15:38:16 Re: Where to store Blobs?