X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 48FB1D1B4AE for ; Tue, 2 Dec 2003 23:07:54 +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 13024-06 for ; Tue, 2 Dec 2003 19:08:00 -0400 (AST) Received: from n8.grp.scd.yahoo.com (n8.grp.scd.yahoo.com [66.218.66.92]) by svr1.postgresql.org (Postfix) with SMTP id F3DE3D1B4AA for ; Tue, 2 Dec 2003 19:07:48 -0400 (AST) X-eGroups-Return: sentto-2458782-145-1070406476-pgsql-sql=postgresql.org@returns.groups.yahoo.com Received: from [66.218.66.96] by n8.grp.scd.yahoo.com with NNFMP; 02 Dec 2003 23:07:56 -0000 X-Sender: alvar@a-blast.org X-Apparently-To: postgres@yahoogroups.de Received: (qmail 53347 invoked from network); 2 Dec 2003 23:07:53 -0000 Received: from unknown (66.218.66.216) by m13.grp.scd.yahoo.com with QMQP; 2 Dec 2003 23:07:53 -0000 Received: from unknown (HELO gnarzelwicht.delirium-arts.de) (195.143.204.190) by mta1.grp.scd.yahoo.com with SMTP; 2 Dec 2003 23:07:52 -0000 Received: from gnarzelwicht.delirium-arts.de (gnarzelwicht.delirium-arts.de [195.143.204.190]) by gnarzelwicht.delirium-arts.de (Postfix) with ESMTP id C21411E883 for ; Wed, 3 Dec 2003 00:07:23 +0100 (CET) To: postgres@yahoogroups.de Message-ID: <868910000.1070406443@gnarzelwicht.delirium-arts.de> X-Mailer: Mulberry/3.1.0 (Linux/x86 Demo) X-message-flag: SICHERHEITSWARNUNG: Outlook ist ein Sicherheitsrisiko. X-eGroups-Remote-IP: 195.143.204.190 From: Alvar Freude MIME-Version: 1.0 Mailing-List: list postgres@yahoogroups.de; contact postgres-owner@yahoogroups.de Precedence: bulk Date: Wed, 03 Dec 2003 00:07:23 +0100 Subject: [postgres] Text zu bytea casten Reply-To: postgres@yahoogroups.de Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/23 X-Sequence-Number: 16189 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hallo, ich habe in einer Tabelle eine Spalte mit dem Datentyp text, das ich nach bytea wandeln m=F6chte (um sp=E4ter auch \000 speichern zu k=F6nnen). Direkt scheint ein Alter Table da nicht zu gehen, also lege ich eine tempor=E4re Spalte an. Nur:=20 > UPDATE forum_gtree SET gid2=3Dgid::bytea; ERROR: Cannot cast type text to bytea Wie kann ich einen Text nach Bytea umwandeln? Umgekehrt scheint es mit encode/decode zu gehen ... http://www.postgresql.org/docs/current/interactive/functions-string.html Dank && Ciao Alvar - --=20 ** 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/zRsrOndlH63J86wRAtBIAKDOPE40+WLyFIK2mCT02gGDkW+YfwCguNcQ MzNwpNhheDC9fMcctqmA76Q=3D =3DnksO -----END PGP SIGNATURE----- Wenn Sie Ihr Abonnement fuer diese Gruppe kuendigen moechten, senden=20 Sie eine E-Mail an: postgres-unsubscribe@egroups.de =20 Die Nutzung von Yahoo! Groups ist Bestandteil von http://de.docs.yahoo.com/= info/utos.html=20