Views in PostgreSQL can be categorized into one of the following categories on the basis of their uses:
- Temporary views: A temporary view is automatically dropped at the end of a user session. If the TEMPORARY or TEMP keywords are not used, then the life cycle of the view starts with the view creation and ends with the action of dropping it.
- Recursive views: A recursive view is similar to the recursive functions in high-level languages. The view column list should be specified in recursive views. The recursion in relational databases, such as in recursive views or recursive Common Table Expressions (CTEs), can be used to write very complex queries, specifically for hierarchical data.
- Updatable views: Updatable views allow ...