Character type name?? How to lower case it?

From: Douglas Nichols <dnichols(at)fhcrc(dot)org>
To: pgsql-sql(at)postgresql(dot)org
Subject: Character type name?? How to lower case it?
Date: 1999-01-28 20:56:21
Message-ID: 36B0CEF5.A49B6E32@fhcrc.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I have this script:
SELECT a.attname, t.typname, a.attlen
FROM pg_class c, pg_attribute a, pg_type t
WHERE c.relname = 'regis' and a.attname in
('var1','var2',var3');

but a.attname is of type name, inwhich text(..) or lower(..)
do not work with this type and I do not seem to be able to
convert type name to text....

Can someone help me get around this?

Thanks
--
Cheers

Douglas Nichols
dnichols(at)fhcrc(dot)org
----------------------------------------------------------------------------
Fred Hutchinson Cancer Research Center

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Bryan White 1999-01-28 21:48:20 Re: [SQL] Auto-Vacuum?
Previous Message Tim Perdue 1999-01-28 19:10:23 Re: [SQL] Auto-Vacuum?