Re: Function proposal to find the type of a datum - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Function proposal to find the type of a datum
Date
Msg-id 6208.1170434233@sss.pgh.pa.us
Whole thread Raw
In response to Re: Function proposal to find the type of a datum  (Kate F <kate@cats.meow.at>)
Responses Re: Function proposal to find the type of a datum  (Kate F <kate@cats.meow.at>)
List pgsql-hackers
Kate F <kate@cats.meow.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


pgsql-hackers by date:

Previous
From: "Pavel Stehule"
Date:
Subject: proposal: only superuser can change customized_options
Next
From: Tom Lane
Date:
Subject: Re: proposal: only superuser can change customized_options