Re: have you feel anything when you read this ? - Mailing list pgsql-sql

From Alvaro Herrera
Subject Re: have you feel anything when you read this ?
Date
Msg-id 20060320122749.GC12564@surnet.cl
Whole thread Raw
In response to Re: have you feel anything when you read this ?  ("Eugene E." <sad@bankir.ru>)
Responses Re: have you feel anything when you read this ?
List 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.


pgsql-sql by date:

Previous
From: "Eugene E."
Date:
Subject: Re: have you feel anything when you read this ?
Next
From: "Eugene E."
Date:
Subject: Re: have you feel anything when you read this ?