Re: getting type name

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Tzahi Fadida <Tzahi(dot)ML(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: getting type name
Date: 2006-07-09 18:49:53
Message-ID: 20060709184953.GA64380@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sun, Jul 09, 2006 at 09:03:21PM +0300, Tzahi Fadida wrote:
> How do i get a char * type from a type Oid. i.e. getStringTypeFromOid(INT4OID)
> will return "int4".

Server-side or client-side? In the backend I think you could use
format_type_be() or format_type_with_typemod(), both declared in
utils/builtins.h and defined in src/backend/utils/adt/format_type.c.

--
Michael Fuhr

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tzahi Fadida 2006-07-09 19:08:42 Re: getting type name
Previous Message Martijn van Oosterhout 2006-07-09 18:22:57 Re: lastval exposes information that currval does not