Re: have you feel anything when you read this ?

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: "Eugene E(dot)" <sad(at)bankir(dot)ru>
Cc: Achilleus Mantzios <achill(at)matrix(dot)gatewaynet(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-sql(at)postgresql(dot)org
Subject: Re: have you feel anything when you read this ?
Date: 2006-03-20 12:27:49
Message-ID: 20060320122749.GC12564@surnet.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Eugene E. wrote:
> Alvaro Herrera wrote:

> >text is not bytea.
>
> source says:
>
> typedef text varlena;
> typedef bytea varlena;

This means that as far as the C type system is concerned, both bytea and
text are treated as "struct varlena". It doesn't mean that they are
processed by the same input/output functions, which they aren't.

NUL bytes are preserved in bytea, and used as terminators in text. I
don't find this surprising at all, do you?

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Eugene E. 2006-03-20 12:31:35 Re: have you feel anything when you read this ?
Previous Message Eugene E. 2006-03-20 12:19:56 Re: have you feel anything when you read this ?