pg_constraint_list
List primary key, foreign key, unique, and check constraints for a specified PostgreSQL table to inspect its schema and integrity rules.
Instructions
List constraints (primary key, foreign key, unique, check) for a table.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | Table name | |
| schema | No | Schema name (default: 'public') | |
| target | Yes | Target name from ~/.dbx/targets/ |