List PostgreSQL Triggers
pg_list_triggersList all triggers in a PostgreSQL schema, with optional filtering by table, to view trigger details like event, timing, and statement.
Instructions
List all triggers in a schema, optionally filtered by table.
Args:
schema: Schema name (default: public)
table: Filter to a specific table (optional)
response_format: Output format
Returns: JSON: { triggers: TriggerInfo[], count: number } Markdown: table with trigger name, table, event, timing, orientation, and statement
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | No | PostgreSQL schema name (default: public) | public |
| table | No | Filter to a specific table (optional) | |
| response_format | No | Output format: 'markdown' for human-readable, 'json' for machine-readable | markdown |