Skip to content

Paid plans add features and fund TablePro’s development. Optional paid plans See plans

PostgreSQL client

Query PostgreSQL, browse schemas and edit rows, and read EXPLAIN plans, jsonb, arrays and PostGIS values.

At a glance

Query language
SQL
Driver
Comes with the Mac appShared with Amazon Redshift, CockroachDB and PGlite
Connect with
Host and port, SSH tunnel, SSL/TLS, AWS IAM, Cloud SQL Auth Proxy
Default port
5432
Minimum version
9.1
TablePro on a Mac connected to PostgreSQL, with a query that builds arrays and jsonb, and its results.

Connect

Enter a host, port, user and database, or paste a postgresql:// or postgres:// URL; the database is required. New connections start with SSL set to Preferred, libpq’s sslmode=prefer. Choose Verify CA or Verify Identity to check the server’s certificate.

Use ~/.pgpass reads the password from ~/.pgpass and reports a file whose permissions would make libpq ignore it. Amazon RDS and Aurora sign in with AWS IAM for roles granted rds_iam, and Google Cloud SQL uses the Cloud SQL Auth Proxy. Connection Options takes anything libpq accepts, such as -c application_name=reporting.

Query and edit

View EXPLAIN and EXPLAIN ANALYZE as diagrams or trees, and compare the plans of two runs. jsonb is formatted, array elements edit as a list, and enum columns offer their labels.

PostGIS geometry and geography values read as EWKT with their SRID, and a result with geometry opens on the Map view. A materialized view’s rows are read-only: refresh it from its menu, concurrently when the view has the unique index PostgreSQL requires.

Schemas and structure

Create or edit a schema with its owner, comment and grants, and review the SQL first. Browse partition bounds and PostgreSQL Types: enums, composites, domains and ranges. Enum labels can be added or renamed.

A view’s definition is rebuilt with every table schema-qualified, and an index left invalid by a failed concurrent build is named in the Indexes tab. Compare & Sync (Pro) compares PostgreSQL schemas or data and holds back changes that could remove data.

Administer

Users & Roles shows where each privilege comes from. The Server Dashboard shows sessions, cache hit ratio, database size and slow queries, and cancels a query with pg_cancel_backend or ends a session with pg_terminate_backend. A role that is neither a superuser nor a member of pg_monitor sees other sessions without their queries.

Preview VACUUM, ANALYZE, REINDEX and CLUSTER before they run. Backup Dump and Restore Dump run your own pg_dump and pg_restore through the connection’s SSH tunnel; for a PostgreSQL 9.1 server, use pg_dump 14 or earlier.

This page covers what is specific to PostgreSQL. Safe Mode, the AI assistant, the MCP server and the rest of TablePro are on the feature pages.

CockroachDB

CockroachDB uses the PostgreSQL driver that comes with the app, and new clusters start with the defaultdb database. For CockroachDB Cloud, copy the host, user, password and database from the Cloud console, put --cluster=your-cluster in Connection Options and set SSL Mode to Verify Identity; a local insecure node uses Disabled.

DDL comes from CockroachDB’s own SHOW CREATE, EXPLAIN text plans are parsed into the plan tree, and the Server Dashboard lists sessions and active queries. Foreign key checks cannot be deferred.

Default port
26257
Minimum version
None
Limits
  • The Structure tab is read-only. Run schema changes as SQL in the editor.
  • No Backup Dump, Restore Dump or table maintenance. Use CockroachDB’s own BACKUP and RESTORE statements.

CockroachDB setup guide

PGlite

PGlite is PostgreSQL compiled to WebAssembly. Start its socket server with npx @electric-sql/pglite-socket, adding --db=./my-pgdata to keep the data on disk, then connect to 127.0.0.1 rather than localhost. The server checks no password and has no TLS, so the form asks for neither.

Its catalogs are complete, so structure editing, Users & Roles and the EXPLAIN diagrams work as on a server, on its one database, postgres.

Default port
5432
Limits
  • PGlite has to be served by @electric-sql/pglite-socket, which you start yourself and keep running.
  • The socket server accepts one client at a time.
  • Cancel has no effect: a query always runs to completion.

PGlite setup guide

Also

  • Move data

    Import CSV, TSV, JSON, JSONL, XLSX and SQL files, and export tables or results as CSV, JSON, SQL, XLSX, Markdown, HTML and XML; SQL exports keep table, view and materialized-view comments. Copy To moves tables and their data to another PostgreSQL connection or another engine.

  • iPhone and iPad

    The iPhone and iPad app connects to PostgreSQL.

    Switch databases and schemas from the toolbar, browse tables as cards, edit rows that have a primary key and run SQL in the Query tab. SSL runs from Required to Verify Identity, and SSH tunnels sign in with a password or a key.

    TablePro for iPhone and iPad

  • Limits

    • Reordering columns writes a script that rebuilds the table. TablePro shows the script and never runs it.
  • Does TablePro work with hosted PostgreSQL, such as Amazon RDS, Neon or Supabase?

    Yes. A hosted server is a host and a port like any other, and Neon, Supabase and Heroku connect with the host they give you. They require TLS, which a new connection tries first.

  • Can I reorder columns?

    TablePro writes the script that rebuilds the table in the new column order and shows it to you, but never runs it. Run it yourself when the table can be rewritten.

  • Other tools

    pgAdmin centers on PostgreSQL administration and Postico 2 on browsing and editing PostgreSQL on Mac; see TablePro vs pgAdmin and TablePro vs Postico 2.

Get TablePro

Pro adds Compare & Sync. Everything else on this page is free.