On Fri, 2013-06-28 at 17:29 -0300, Claudio Freire wrote: > Why not forego checking of the type, and instead check the interface? > > plpy.info(x.as_tuple()) > > Should do. > > >>> d = decimal.Decimal((0,(3,1,4),-2)) > >>> d.as_tuple() > DecimalTuple(sign=0, digits=(3, 1, 4), exponent=-2)
I think that potentially exposes us to more version differences and such, and it doesn't really add much value in the test output. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers