From: Karsten Hilbert <Karsten.Hilbert@gmx.net>
To: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: Where to store Blobs?
Date: Wed, 13 Mar 2019 16:55:25 +0100
Message-ID: <20190313155525.GB3145@hermes.hilbert.loc> (raw)
In-Reply-To: <CAFNqd5WhuRSPPoPTR9uw7tD_9o4TqFq=WOBGsEzVs6xTuxcefg@mail.gmail.com>
References: <666a8edc-6d86-ad8f-4ff8-101f108e6aa5@thomas-guettler.de>
<CAFNqd5WhuRSPPoPTR9uw7tD_9o4TqFq=WOBGsEzVs6xTuxcefg@mail.gmail.com>
On Wed, Mar 13, 2019 at 11:50:37AM -0400, Christopher Browne wrote:
>> I guess most people do not store Blobs in PostgresSQL.
- BYTEA puts practical limits on size
- LO storage happens inside the system (!) table
Nowadays, there are Foreign Data Wrappers which might
encapsulate files as if they lived inside the database.
Also, a combination of
COPY TO FORMAT binary
pg_read_binary_file()
and suitable plpgsql security definer functions might provide
for a Poor Man's binary file integrated external storage.
Karsten
--
GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: Karsten.Hilbert@gmx.net
Subject: Re: Where to store Blobs?
In-Reply-To: <20190313155525.GB3145@hermes.hilbert.loc>
References: <666a8edc-6d86-ad8f-4ff8-101f108e6aa5@thomas-guettler.de> <CAFNqd5WhuRSPPoPTR9uw7tD_9o4TqFq=WOBGsEzVs6xTuxcefg@mail.gmail.com> <20190313155525.GB3145@hermes.hilbert.loc>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox