Re: bytea or blobs?

From: sad <sad(at)bankir(dot)ru>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: bytea or blobs?
Date: 2004-02-18 06:14:29
Message-ID: 200402180914.29318.sad@bankir.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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)

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message David Witham 2004-02-18 06:23:27 Re: Indexes and statistics
Previous Message Kumar 2004-02-18 05:13:59 Disabling constraints