Re: to_typemod(type_name) information function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Sophie Herold <sophie_h(at)hemio(dot)de>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: to_typemod(type_name) information function
Date: 2017-11-18 15:50:04
Message-ID: 7542.1511020204@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Sophie Herold <sophie_h(at)hemio(dot)de> writes:
> I need to test a (user) given column type name, with one in the database
> for equality. To this end, I have to do some kind of normalization (e.g.
> 'timestamptz(2)' to 'timestamp (2) with time zone'.)

Perhaps format_type(oid, integer) would help you.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message ROS Didier 2017-11-18 15:52:04 unsubscribe pgsql-hackers@postgresql.org
Previous Message Tom Lane 2017-11-18 15:44:36 Re: percentile value check can be slow