Re: text and bytea

From: "hernan gonzalez" <hgonzalez(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: text and bytea
Date: 2008-02-22 15:54:46
Message-ID: 48692c2d0802220754h5b05974crd3dd7e784d9fe640@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> It seems to me that postgres is trying to do as you suggest: text is
> characters and bytea is bytes, like in Java.

But the big difference is that, for text type, postgresql knows "this
is a text"
but doesnt know the encoding, as my example showed. This goes against
the concept of "text vs bytes" distintion, which per se is very useful
and powerful
(specially in this Unicode world) and leads to a dubious/clumsy string api
(IMHO, as always).

> You don't indicate what
> version you are using, this area was rejigged recently.
>

Sorry, I forget to say that my examples are for last version (8.3)

Cheers

--
Hernán J. González

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message A.M. 2008-02-22 15:58:00 Re: Mac ordering with locales
Previous Message Erik Jones 2008-02-22 15:35:14 Re: Unique indicies