Re: OID of type by name.

From: Dmitriy Igrishin <dmitigr(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: OID of type by name.
Date: 2010-12-08 13:30:38
Message-ID: AANLkTimGjtBerWed+FGAr8SZjZZDRugKCZRrtXYvOGtz@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

SELECT oid FROM pg_type WHERE typtype = 'b' AND typarray <> 0 AND
typname::regtype = 'integer';

Many thanks to Florian Pflug.

2010/12/8 Dmitriy Igrishin <dmitigr(at)gmail(dot)com>

> Hey general@,
>
> SELECT oid FROM pg_type WHERE typname = 'integer';
> oid
> -----
> (0 rows)
>
> SELECT oid FROM pg_type WHERE typname = 'int4';
> oid
> -----
> 23
> (1 row)
>
> How can I get OID by name rather than alias ?
>
> --
> // Dmitriy.
>
>
>

--
// Dmitriy.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message c k 2010-12-08 13:35:11 Asynchronous query execution
Previous Message Jon Nelson 2010-12-08 13:20:25 Re: How to obtain the maximum value of a date, between 3 tables...