On mån, 2010-10-11 at 00:13 -0400, Tom Lane wrote:
> It looks to me like this used to work and got broken by this patch:
> http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=3ab8b7fa6f9ac2fb04096f8860261dc42d59a570
>
> which lobotomized plpython to not care about passing the right typmod
> to
> I/O functions. This is a regression, and it's particularly annoying
> because the other three standard PLs get this case right. Peter?
Never thought of that, typmods have a tendency to get lost somehow. :-/
Fix looks good; also good to get rid of the useless PLyTypeInfo
argument.