Skip site navigation (1) Skip section navigation (2)

Re: determining a type oid from the name

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Andrew Dunstan" <andrew(at)dunslane(dot)net>, "Thom Brown" <thom(at)linux(dot)com>
Cc: "PostgreSQL-development" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: determining a type oid from the name
Date: 2012-02-22 18:34:04
Message-ID: 4F44E0BC0200002500045A28@gw.wicourts.gov (view raw or flat)
Thread:
Lists: pgsql-hackers
Thom Brown <thom(at)linux(dot)com> wrote:
> Does this help?
> 
> test=# SELECT pg_typeof('4834.34'::numeric)::oid;
>  pg_typeof
> -----------
>       1700
> (1 row)
 
Wouldn't it be easier to do this instead?
 
test=# SELECT 'numeric'::regtype::oid;
 oid  
------
 1700
(1 row)
 
-Kevin

In response to

Responses

pgsql-hackers by date

Next:From: Thom BrownDate: 2012-02-22 18:36:35
Subject: Re: determining a type oid from the name
Previous:From: Thom BrownDate: 2012-02-22 18:28:33
Subject: Re: determining a type oid from the name

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group