Re: aliases

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: ivan <iv(at)psycho(dot)pl>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: aliases
Date: 2003-07-06 21:42:27
Message-ID: 20030706214226.GA28540@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sun, Jul 06, 2003 at 10:15:37PM +0200, ivan wrote:
>
> where can i find aliases to type , for example INT4 = INT = INTEGER ...
> I realy need it to check if function is exists ..
> Or how to get oid from same type , but no like select from pg_type

Maybe this is helpful:

alvh=> select 'int'::regtype;
regtype
---------
integer
(1 row)

alvh=> select 'int4'::regtype;
regtype
---------
integer
(1 row)

alvh=> select 23::regtype;
regtype
---------
integer
(1 row)

I don't know about the rest though.

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"No renuncies a nada. No te aferres a nada"

In response to

  • aliases at 2003-07-06 20:15:37 from ivan

Browse pgsql-hackers by date

  From Date Subject
Next Message Christopher Kings-Lynne 2003-07-07 02:19:59 Re: How to submit Tsearch V2 ?
Previous Message Francisco Figueiredo Jr. 2003-07-06 20:37:36 Re: Receiving data in binary format how is it encoded?