"Ron Peterson" <ron.peterson@xxxxxxxxxxxxxx> writes: > Am I making this way too complicated? Do I only have to return a C > string representation of three bytea values as a tuple? No, if you want to define a composite type and return it then you're on the right track to be using heap_form_tuple. And using a composite type is probably the right approach. Other utilities like pageinspect do use composite types for things like this. -- Gregory Stark EnterpriseDB http://www.enterprisedb.com ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match