Re: Clarification needed - Mailing list pgsql-hackers

From Dhanaraj M
Subject Re: Clarification needed
Date
Msg-id 452D099A.1040906@sun.com
Whole thread Raw
In response to Re: Clarification needed  (Zdenek Kotala <Zdenek.Kotala@Sun.COM>)
Responses Re: Clarification needed  ("Sreejesh O S" <sreejeshos@gmail.com>)
List pgsql-hackers
In psql, 
psql>\d tableName

Query is
SELECT pg_catalog.format_type(a.atttypid, a.atttypmod) from 
pg_attribute a, pg_class c where  a.attrelid =c.oid and 
c.relname='TableName' and a.attname='ColName';


Zdenek Kotala wrote:

>
> Look at http://www.postgresql.org/docs/8.1/interactive/catalogs.html
>
> Specially on pg_attribute, pg_class and pg_type table. Or you can use 
> some features in the psql.
>
>     Zdenek
>
>
> Indira Muthuswamy napsal(a):
>
>> Hai,
>>  
>> Can anyone of you help me in finding the datatype of a particular 
>> column in a table in Postgres?
>>  
>> Thanks and Regards,
>> M.Indira
>>  
>>  
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings




pgsql-hackers by date:

Previous
From: "Andrew Hammond"
Date:
Subject: Re: Clarification needed
Next
From: Andrew Dunstan
Date:
Subject: Re: hstore isexists