Wrapper function

A wrapper function allows you to directly call one routine from another routine that is in a different dynamic link library or shared object file. The alternative is to call one routine from another routine by using the SQL statement EXECUTE FUNCTION. However, using SQL is slower than a direct call.

The wrapper function loads a routine from a different dynamic link library within the database server, executes it, and returns the result.