Tasks perform database jobs requested by the users of the database system or the kernel. Tasks run in the user kernel thread.
The task states give you information about the current state of a task.
There are several different types of tasks, each responsible for special jobs. For example, user tasks are responsible for processing SQL queries.