X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 595C89DCE38 for ; Mon, 20 Mar 2006 08:27:50 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 67265-02 for ; Mon, 20 Mar 2006 08:27:52 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mx1.surnet.cl (mx1.surnet.cl [216.155.73.180]) by postgresql.org (Postfix) with ESMTP id 154619DCE40 for ; Mon, 20 Mar 2006 08:27:46 -0400 (AST) Received: from unknown (HELO cluster.surnet.cl) ([216.155.73.165]) by mx1.surnet.cl with ESMTP; 20 Mar 2006 08:27:49 -0400 X-IronPort-AV: i="4.03,110,1141614000"; d="scan'208"; a="47679246:sNHT18511188" Received: from alvh.no-ip.org (201.221.200.13) by cluster.surnet.cl (7.0.043) (authenticated as alvherre@surnet.cl) id 43A978FD00B25F25; Mon, 20 Mar 2006 08:27:49 -0400 Received: by alvh.no-ip.org (Postfix, from userid 1000) id 43B5CC45022; Mon, 20 Mar 2006 08:27:49 -0400 (CLT) Date: Mon, 20 Mar 2006 08:27:49 -0400 From: Alvaro Herrera To: "Eugene E." Cc: Achilleus Mantzios , Peter Eisentraut , pgsql-sql@postgresql.org Subject: Re: have you feel anything when you read this ? Message-ID: <20060320122749.GC12564@surnet.cl> Mail-Followup-To: "Eugene E." , Achilleus Mantzios , Peter Eisentraut , pgsql-sql@postgresql.org References: <200603201251.11255.peter_e@gmx.net> <20060320121354.GA12564@surnet.cl> <441E9DEC.2070805@bankir.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <441E9DEC.2070805@bankir.ru> User-Agent: Mutt/1.5.11+cvs20060126 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=2.178 required=5 tests=[AWL=-0.977, DNS_FROM_RFC_ABUSE=0.479, DNS_FROM_RFC_POST=1.44, RCVD_IN_SORBS_WEB=1.236] X-Spam-Score: 2.178 X-Spam-Level: ** X-Archive-Number: 200603/300 X-Sequence-Number: 24646 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.