pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Gordan Bobic <gordan@freeuk.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Re: Data type for storing images?
Date: Tue, 13 Mar 2001 13:25:56 -0500
Message-ID: <20505.984507956@sss.pgh.pa.us> (raw)
In-Reply-To: <000e01c0aba1$0438f5a0$800010ac@localdomain>
References: <20010311223818.18682.qmail@mailhost.sidereal.kz>
	<20010311223818.18682.qmail@mailhost.sidereal.kz>
	<3.0.5.32.20010313153121.009643c0@192.228.128.13>
	<20010313090044.25147.qmail@mailhost.sidereal.kz>
	<000e01c0aba1$0438f5a0$800010ac@localdomain>

"Gordan Bobic" <gordan@freeuk.com> writes:
> More to the point, what would be a reason for not using bytea to
> replace BLOBs completely?

The fact that encoding/decoding is a pain in the neck :-(.  The
lo_read/lo_write interfaces are a relatively convenient way to send
and receive binary data, but the ASCII input-output representation that
bytea uses is not.

We really need some binary-friendly data transmission interface like
lo_read/lo_write for bytea fields before they will be ready to take over
the world.  I think Jan has some ideas about how to do that, but it's
not done yet.

			regards, tom lane



view thread (11+ messages)

Message-ID: <20505.984507956@sss.pgh.pa.us>
Permalink:  ../20505.984507956@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/20505.984507956@sss.pgh.pa.us

 · 

reply

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-interfaces@postgresql.org
  Cc: tgl@sss.pgh.pa.us, gordan@freeuk.com, pgsql-general@postgresql.org
  Subject: Re: Re: Data type for storing images?
  In-Reply-To: <20505.984507956@sss.pgh.pa.us>

* 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