type regclass casting

From: sad <sad(at)spider(dot)ru>
To: pgsql-sql(at)postgresql(dot)org
Subject: type regclass casting
Date: 2004-05-28 09:29:35
Message-ID: 200405281329.35278.sad@spider.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-sql by date

  From Date Subject
Next Message Oleg Mayevskiy 2004-05-28 13:49:34 insert or update violates foreign key constraint.why?
Previous Message Louie Kwan 2004-05-27 20:43:47 PostgreSQL is hanging up !?