pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: sad <sad@spider.ru>
To: pgsql-sql@postgresql.org
Subject: type regclass casting
Date: Fri, 28 May 2004 13:29:35 +0400
Message-ID: <200405281329.35278.sad@spider.ru> (raw)

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 




view thread (2+ messages)  latest in thread

Message-ID: <200405281329.35278.sad@spider.ru>
Permalink:  ../200405281329.35278.sad@spider.ru/
Also on:    postgresql.org/message-id/200405281329.35278.sad@spider.ru

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: sad@spider.ru
  Subject: Re: type regclass casting
  In-Reply-To: <200405281329.35278.sad@spider.ru>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox