Re: about data type id

From: "Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au>
To: "Jinqiang Han" <postgresql(at)db(dot)pku(dot)edu(dot)cn>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: about data type id
Date: 2002-12-24 03:07:44
Message-ID: GNELIHDDFBOCMGBFGEFOCEMDCEAA.chriskl@familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)postgresql(dot)org
> [mailto:pgsql-hackers-owner(at)postgresql(dot)org]On Behalf Of Jinqiang Han
> Sent: Tuesday, 24 December 2002 10:00 AM
> To: pgsql-hackers(at)postgresql(dot)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
>

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2002-12-24 05:53:43 Re: about data type id
Previous Message Jinqiang Han 2002-12-24 02:49:01 about data type id