Determining typmod of *source* of a cast

From: Jim Nasby <Jim(dot)Nasby(at)BlueTreble(dot)com>
To: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Determining typmod of *source* of a cast
Date: 2014-11-30 01:19:37
Message-ID: 547A70A9.4030108@BlueTreble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Is there any way to determine the typemod of the source data for a cast? Perhaps a modification on get_call_expr_argtype(), though I'd hate to put that in an extension...

BTW, it'd be nice if we better emphasized that the typmod passed to a cast function is for the destination... :/
--
Jim Nasby, Data Architect, Blue Treble Consulting
Data in Trouble? Get it in Treble! http://BlueTreble.com

Browse pgsql-hackers by date

  From Date Subject
Next Message Noah Misch 2014-11-30 02:02:04 Re: Securing "make check" (CVE-2014-0067)
Previous Message David G Johnston 2014-11-29 21:55:30 Re: [COMMITTERS] pgsql: Revert "Add libpq function PQhostaddr()."