xpath_long(xml, xpath) - Returns a long value that matches the xpath expression Example: > SELECT xpath_long('12','sum(a/b)') FROM src LIMIT 1; 3