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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-hackers by date

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