List views with definitions
pg_list_viewsList views and materialized views in any schema with their SQL definitions, making view body inspection straightforward when names alone are insufficient.
Instructions
List views and materialized views in a schema with their SQL definitions. Use this over pg_list_tables with includeViews: true when you want the view body, not just names.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | No | Schema name (defaults to 'public'). | public |
| includeMaterialized | No | If true, include materialized views. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes |