type regclass casting - Mailing list pgsql-sql

From sad
Subject type regclass casting
Date
Msg-id 200405281329.35278.sad@spider.ru
Whole thread Raw
List pgsql-sql
hello

select * from pg_class where oid = 'sometablename'::regclass;
(1 row)

select * from pg_class where oid = '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



pgsql-sql by date:

Previous
From: Willem de Jong
Date:
Subject: Re: sum ( time) problem
Next
From: Oleg Mayevskiy
Date:
Subject: insert or update violates foreign key constraint.why?