X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id E6E9CD1D452 for ; Wed, 3 Dec 2003 08:34:42 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 83558-05 for ; Wed, 3 Dec 2003 04:34:12 -0400 (AST) Received: from gnarzelwicht.delirium-arts.de (mail.delirium-arts.de [195.143.204.190]) by svr1.postgresql.org (Postfix) with ESMTP id 0373DD1B4A0 for ; Wed, 3 Dec 2003 04:34:11 -0400 (AST) Received: from gnarzelwicht.delirium-arts.de (gnarzelwicht.delirium-arts.de [195.143.204.190]) by gnarzelwicht.delirium-arts.de (Postfix) with ESMTP id 2B2702DFFA; Wed, 3 Dec 2003 09:33:42 +0100 (CET) Date: Wed, 03 Dec 2003 09:33:41 +0100 From: Alvar Freude To: pgsql-admin@postgresql.org Cc: Godshall Michael Subject: Re: Cast text to bytea Message-ID: <1188410000.1070440421@gnarzelwicht.delirium-arts.de> In-Reply-To: References: X-Mailer: Mulberry/3.1.0 (Linux/x86 Demo) X-message-flag: SICHERHEITSWARNUNG: Outlook ist ein Sicherheitsrisiko. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/22 X-Sequence-Number: 11530 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, uups, why I wrote the originating mail to pgsql-admin? Sorry! - -- Godshall Michael wrote: > Have you seen this? > http://www.postgresql.org/docs/current/static/datatype-binary.html yes, but this only describe the bytea type, not how to cast some text. Or I missed something ;) ... > Maybe you need some backslashes? this also doesn't help: odem=> SELECT 'abc'::text::bytea; ERROR: Cannot cast type text to bytea odem=> SELECT '\000'::text::bytea; ERROR: Cannot cast type text to bytea Ciao Alvar - -- ** Alvar C.H. Freude -- http://alvar.a-blast.org/ ** Berufsverbot? http://odem.org/aktuelles/staatsanwalt.de.html ** ODEM.org-Tour: http://tour.odem.org/ ** Informationsgesellschaft: http://www.wsis-koordinierungskreis.de/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/zZ/lOndlH63J86wRAp6MAKCJrV6S8b0LKF3xpC9EHrEhz+/uVgCgukpf sUZsrP3+u2Sxn0goxTGMAxY= =+bY9 -----END PGP SIGNATURE-----