On Sep 10, 2009, at 12:10 PM, Tom Lane wrote:
SELECT sprintf('some %d', 10::mycustomtype)For the formats that presume an integer or float input in C, perhaps we could coerce to numeric (failing if that fails) and then print appropriately. Or maybe int or float8 would be more appropriate conversion targets.
Don't forget type categories, which could dictate useful defaults. Best, David -- Sent via pgsql-hackers mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers
