Keywords introducing the external security clause.
This clause is recommended for procedures that perform operating system I/O operations because it permits you to specify a particular OS user under whom the function runs. Otherwise, a protected mode procedure runs under the generic user tdatuser.
- DEFINER
- The UDF runs in the client user context of the associated security authorization object created for this purpose, which is contained within the same database as the procedure.
- authorization_name
- An optional authorization name for this DEFINER as defined by CREATE AUTHORIZATION.
- INVOKER
- The procedure runs using the INVOKER authorization associated with the logged on user who is running the function.