Re: Function proposal to find the type of a datum

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kate F <kate(at)cats(dot)meow(dot)at>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Function proposal to find the type of a datum
Date: 2007-02-02 16:37:13
Message-ID: 6208.1170434233@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Kate F <kate(at)cats(dot)meow(dot)at> writes:
> So, to conclude, we still have a valid use-case (which you explained a
> little more explicitly than I did). Shall I attempt to implement it?
> (that is, type_name_of() which returns TEXT)

I think I'd suggest pg_type_name ... or maybe pg_type_name_of ...
also, the code you need to convert OID to name is already there,
see regtypeout.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2007-02-02 16:40:10 Re: proposal: only superuser can change customized_options
Previous Message Pavel Stehule 2007-02-02 16:33:31 proposal: only superuser can change customized_options