On Sep 9, 2009, at 10:22 AM, Tom Lane wrote:
>> Well, only if you write your functions in C. I'd like to be able to
>> write sprintf() in PL/pgSQL. Or PL/Perl, for that matter.
>
> I think you're confusing the point with a secondary issue, which is
> what
> access we provide to these pseudotypes in PLs. To write sprintf in a
> PL, you'd at least need the ability to cast "any" to text. I guess
> you
> can do that with anyelement, though, so maybe there is nothing much
> here
> except an overly restrictive safety check.
Yes, exactly.
Best,
David