Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
Lists: pgsql-sql

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

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group