type regclass casting

From: sad <sad(at)bankir(dot)ru>
To: pgsql-sql(at)postgresql(dot)org
Subject: type regclass casting
Date: 2004-05-31 07:52:42
Message-ID: 200405311152.42932.sad@bankir.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

hello

look

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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Jaime Casanova 2004-05-31 14:19:49 joining a table with a function
Previous Message Tom Lane 2004-05-31 06:14:56 Re: passing new/old record in pl/pgsql trigger functions to other functions