switch (invocation.getCallingConvention()) {
case LOADABLE_PLAN:
pstmt = PostgresLoadablePlan.statement(server, invocation);
break;
case SCRIPT_LIBRARY:
throw new CantCallScriptLibraryException(stmt);
default:
pstmt = PostgresJavaRoutine.statement(server, invocation,
params, paramTypes);
}
// The above makes extensive use of the AIS. This doesn't fit well into the