Re: to_typemod(type_name) information function - Mailing list pgsql-hackers

From Tom Lane
Subject Re: to_typemod(type_name) information function
Date
Msg-id 7542.1511020204@sss.pgh.pa.us
Whole thread Raw
In response to to_typemod(type_name) information function  (Sophie Herold <sophie_h@hemio.de>)
Responses Re: to_typemod(type_name) information function  (Sophie Herold <sophie_h@hemio.de>)
List pgsql-hackers
Sophie Herold <sophie_h@hemio.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


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: percentile value check can be slow
Next
From: ROS Didier
Date:
Subject: unsubscribe pgsql-hackers@postgresql.org