PostgreSQL client for Mac
TableAI is a native macOS database client for PostgreSQL, with a SQL editor, editable results, structure tools, and database administration. Add your own AI provider key to generate PostgreSQL queries in chat or let the AI agent explore your schema and data. To weigh TableAI against other apps, see the PostgreSQL client for Mac overview and the PostgreSQL GUI comparison.
Connect
Section titled “Connect”Connect to a server on your Mac, in a container, or on a remote network. TableAI supports PostgreSQL connection URLs, SSL/TLS certificates, and SSH tunnels. Start with connection basics, then choose the guide for your server:
| Server | Guide |
|---|---|
| On your Mac | Local PostgreSQL |
| In a container | Docker |
| Amazon Web Services | RDS or Aurora |
| Microsoft Azure | Azure Database for PostgreSQL |
| Google Cloud | Cloud SQL |
| Heroku | Heroku Postgres |
| Neon | Neon |
| Supabase | Supabase |
See the support matrix for tested versions and feature coverage.
Browse, query, and edit
Section titled “Browse, query, and edit”Use the Tables sidebar to find tables and views and inspect their columns, keys, and indexes. The SQL editor provides completions, query history, and saved queries.
The results grid loads large results in batches and draws the visible cells. You can filter columns, inspect values, and follow foreign keys to related rows. The PostgreSQL data types guide explains the value editors.
Row changes stay staged until you click Apply. Review the generated statements with Preview SQL before saving. See edit data safely for the complete workflow.
Change structure and move data
Section titled “Change structure and move data”The structure editor keeps column, key, index, and constraint changes in a draft with a SQL preview. You can also inspect and edit definitions for views, routines, and triggers. See change structure.
Import or export table data through files when you need to move records between systems. The data transfer guide covers formats and review steps.
Inspect performance
Section titled “Inspect performance”Open Admin to inspect sessions, locks, storage, and query and index statistics. These PostgreSQL guides provide SQL for individual checks:
- Find slow queries.
- Identify blocked queries.
- Cancel a query or end a session.
- Measure table sizes.
- Review unused indexes.
AI chat
Section titled “AI chat”Ask for SQL, explanations, or corrections using the schema and editor context you select. AI chat uses your own provider and API key.
The database agent
Section titled “The database agent”Agent mode investigates questions through schema searches, read-only queries, and query plans. It returns proposed database changes as SQL for you to review and run. See the database agent.
AI Database Analysis
Section titled “AI Database Analysis”Admin › AI Analysis produces a report from the database statistics you select, with evidence for its recommendations. It does not send table rows. See AI Database Analysis.
Resolve an error
Section titled “Resolve an error”Use the PostgreSQL code in the database error to choose a guide:
| Code | Problem |
|---|---|
| 28P01 | Password authentication failed |
| 23505 | Duplicate unique key |
| 42501 | Insufficient privilege |
| 40P01 | Deadlock detected |
| 53300 | Too many connections |
For a failure before PostgreSQL returns a code, start with connection failed.