Re: about data type id - Mailing list pgsql-hackers

From Christopher Kings-Lynne
Subject Re: about data type id
Date
Msg-id GNELIHDDFBOCMGBFGEFOCEMDCEAA.chriskl@familyhealth.com.au
Whole thread Raw
In response to about data type id  ("Jinqiang Han" <postgresql@db.pku.edu.cn>)
Responses Re: about data type id
List pgsql-hackers
Hi Jinqiang,

Try:  SELECT oid FROM pg_type WHERE typname='text';

You can always make that into a function.

Chris

> -----Original Message-----
> From: pgsql-hackers-owner@postgresql.org 
> [mailto:pgsql-hackers-owner@postgresql.org]On Behalf Of Jinqiang Han
> Sent: Tuesday, 24 December 2002 10:00 AM
> To: pgsql-hackers@postgresql.org
> Subject: [HACKERS] about data type id 
> 
> 
> hello,
> Is there a function that I can get type id from type name, such 
> as from 'text' to 25, 'int' to 23. 
> thanks in advance.
> Jinqiang Han
> 
> 
> 
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
> 
> http://archives.postgresql.org
> 



pgsql-hackers by date:

Previous
From: "Jinqiang Han"
Date:
Subject: about data type id
Next
From: Tom Lane
Date:
Subject: Re: about data type id