List views with definitions
pg_list_viewsGet views and materialized views in a schema with their SQL definitions. Specify schema name to filter; includes materialized views by default.
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 |