From: Leon Torres <leon@oss.minimetria.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@postgresql.org
Subject: Re: Recommendation on bytea or blob for binary data like images
Date: Tue, 06 Sep 2005 13:21:59 -0700
Message-ID: <431DFA67.4060308@oss.minimetria.com> (raw)
In-Reply-To: <17794.1125693189@sss.pgh.pa.us>
References: <42165.70.34.104.163.1125688546.squirrel@webmail.oss.minimetria.com>
<17794.1125693189@sss.pgh.pa.us>
Thanks for the quick response. We will be using bytea from now on. :-)
- Leon
Tom Lane wrote:
>leon@oss.minimetria.com writes:
>
>
>>Hi, I'd like to know what the official recommendation is on which binary
>>datatype to use for common small-binary size use.
>>
>>
>
>If bytea will work for you, it's definitely the thing to use. The only
>real drawback to bytea is that there's currently no API to read and
>write bytea values in a streaming fashion. If your objects are small
>enough that you can load and store them as units, bytea is fine.
>
>BLOBs, on the other hand, have a number of drawbacks --- hard to dump,
>impossible to secure, etc.
>
> regards, tom lane
>
>
>
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: leon@oss.minimetria.com, tgl@sss.pgh.pa.us
Subject: Re: Recommendation on bytea or blob for binary data like images
In-Reply-To: <431DFA67.4060308@oss.minimetria.com>
* 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