"Brendan Jurd" <direvus(at)gmail(dot)com> writes:
> Surely having the exact same four lines of code written out in dozens
> of places is a Bad Thing, but perhaps there is some reasoning behind
> this that I am missing?
The canonical way to do it is with
DatumGetCString(DirectFunctionCall1(textout, t))
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com