1. A method for managing resource consumption in a computing system, the method comprising: providing a resource policy by defining a plurality of threshold values relating to the resource consumption, wherein the resources are consumed by a plurality of user-defined functions performing tasks for a database management system, wherein the user-defined functions are executed by a plurality of processes external to the database management system; and performing an action, as defined by the resource policy, on at least one of the user-defined functions.