Re: bytea or blobs? - Mailing list pgsql-sql

From sad
Subject Re: bytea or blobs?
Date
Msg-id 200402180914.29318.sad@bankir.ru
Whole thread Raw
In response to Re: bytea or blobs?  (Jan Wieck <JanWieck@Yahoo.com>)
Responses Re: bytea or blobs?  (Dana Hudes <dhudes@tcp-ip.info>)
List pgsql-sql
On Tuesday 17 February 2004 18:08, you wrote:

> I'd recommend to let the application convert the binary
> data to and from base64,

Don't, please don't !

Since you have the good bytea rule to convert so called "binary" data into so
called "text". You have no need another encoding at all.

Generally, the problem is to represent zero (0x00) when input/output. Any
other byte might be stored, dumped, input, output without any problem. Then
why to avoid 8bit chars ?

Bytea notation rule completely resolve the problem of zeroes.
(and also apostrophes :-) naturally)






pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: Indexes and statistics
Next
From: "David Witham"
Date:
Subject: Re: Indexes and statistics