![]() |
|
Use the ALTER FUNCTION statement to change the routine modifiers or pathname of a user-defined function.
|
The ALTER FUNCTION statement allows you to modify a user-defined function to tune its performance. With this statement you can modify characteristics that control how the function executes. You can also add or replace related UDRs that provide alternatives for the optimizer, which can improve performance.
All modifications take effect on the next invocation of the function.
To use the ALTER FUNCTION statement, you must be the owner of the UDR or have the DBA privilege.
Use the following keywords to introduce the items in the user-defined function that you want to modify.
If the routine modifier is a Boolean value, MODIFY sets the value to be T (that is, it is the equivalent of using the keyword ADD to add the routine modifier). For example, both of the following statements alter the func1 function so that it can be executed in parallel in the context of a parallelizable data query statement.
For a related example, see Altering Routine Modifiers Example.
Related Statements: ALTER PROCEDURE, ALTER ROUTINE, CREATE FUNCTION, CREATE PROCEDURE, DROP FUNCTION, DROP PROCEDURE, and DROP ROUTINE
For a discussion on how to create and use SPL routines, see the Informix Guide to SQL: Tutorial.
For a discussion of how to create and use external routines, see Extending Informix Dynamic Server 2000.
For information about how to create C UDRs, see the DataBlade API Programmer's Manual.