greg landrum <greg.landrum@xxxxxxxxx> writes: > Tom Lane wrote: >> text = DatumGetCString(DirectFunctionCall1(varcharout, text_datum)); > This form of dealing with arguments is interesting to learn about. Is > there any documentation of this stuff or do I need to dive into the source? The original motivation for this notation is discussed in src/backend/utils/fmgr/README, and there's some basic docs in the main SGML documentation. Beyond that, looking at code that does something close to what you want has always been the best guide ... regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org