X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 4E7B7D1B34C for ; Fri, 28 May 2004 07:23:05 -0300 (ADT) 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 62067-02 for ; Fri, 28 May 2004 07:22:47 -0300 (ADT) Received: from rock.spider.ru (rock.spider.ru [62.183.34.226]) by svr1.postgresql.org (Postfix) with ESMTP id 6EB05D1BA9E for ; Fri, 28 May 2004 07:22:43 -0300 (ADT) Received: from rock (localhost [127.0.0.1]) by rock (Postfix) with SMTP id 51351912A4 for ; Fri, 28 May 2004 14:22:43 +0400 (MSD) Received: from sad.localnet.ru (sad.localnet.ru [10.0.0.33]) by rock.spider.ru (Postfix) with ESMTP id A1DB09129D for ; Fri, 28 May 2004 14:22:42 +0400 (MSD) Content-Type: text/plain; charset="us-ascii" From: sad Reply-To: sad@spider.ru Organization: spider To: pgsql-sql@postgresql.org Subject: type regclass casting Date: Fri, 28 May 2004 13:29:35 +0400 User-Agent: KMail/1.4.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200405281329.35278.sad@spider.ru> X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200405/227 X-Sequence-Number: 17941 hello select * from pg_class where oid =3D 'sometablename'::regclass; (1 row) select * from pg_class where oid =3D 'sometablename'::text::regclass; ERROR can not cast TEXT to regclass What does this mean ? version 7.3.3 please try it on 7.4.x=20