[{"data":1,"prerenderedAt":229},["ShallowReactive",2],{"\u002Fdatabases\u002Fcockroachdb":3},{"id":4,"title":5,"body":6,"description":204,"extension":205,"faq":206,"headline":219,"lastUpdated":220,"meta":221,"navigation":222,"path":223,"seo":224,"stem":227,"__hash__":228},"databases\u002F4.databases\u002F7.cockroachdb.md","A Native CockroachDB Client for Mac, With Local Clusters",{"type":7,"value":8,"toc":199},"minimark",[9,13,46,187,192],[10,11,12],"p",{},"TableStudio is a native Mac client for CockroachDB. It connects over CockroachDB's PostgreSQL-compatible protocol, but treats CockroachDB as its own engine, from column types to backups. It runs CockroachDB on your Mac, and lets coding agents like Claude Code, Codex and Cursor work on your clusters under rules TableStudio enforces itself.",[14,15,18,26],"lead-feature",{"icon":16,"title":17},"i-ph-hard-drives","Run CockroachDB on your Mac",[10,19,20,21,25],{},"Develop against the same engine you run in production, not Postgres standing in for it. TableStudio creates, starts and stops local CockroachDB servers on the ",[22,23,24],"code",{},"cockroach"," binary, right next to your Postgres and MySQL ones.",[10,27,28,29,33,34,37,38,41,42,45],{},"Need a copy of a cluster to try something risky? A ",[30,31,32],"strong",{},"sandbox"," puts a throwaway copy on your Mac, with its real rows or none. Backups and restore points use CockroachDB's own ",[22,35,36],{},"BACKUP"," and ",[22,39,40],{},"RESTORE",", since ",[22,43,44],{},"pg_dump"," doesn't work against it.",[47,48,51,79,97,138,153,172],"feature-cards",{"description":49,"title":50},"Postgres-compatible where it is, CockroachDB where it isn't.","What TableStudio does for CockroachDB",[52,53,56],"feature-card",{"icon":54,"title":55},"i-ph-shield-check","Agents across your clusters",[57,58,59,63,66,69,76],"ul",{},[60,61,62],"li",{},"Agent reads run in a read-only transaction with a 30-second limit.",[60,64,65],{},"A write can be rehearsed against the cluster's real rows and rolled back.",[60,67,68],{},"Changes to a production cluster are staged as a migration for you to approve.",[60,70,71,72,75],{},"Rows are saved before an agent changes them; the plugin stops ",[22,73,74],{},"psql"," and migration tools writing to production.",[60,77,78],{},"Tagging a production cluster as development is a request only your Touch ID can grant.",[52,80,83],{"icon":81,"title":82},"i-ph-plugs-connected","Connect",[57,84,85,88,91],{},[60,86,87],{},"CockroachDB Cloud and self-hosted clusters, directly or over an SSH tunnel.",[60,89,90],{},"Paste the connection string from the cluster's Connect dialog into Host.",[60,92,93,94,96],{},"Open the cluster in ",[22,95,74],{}," in Terminal, or copy the command line without the password.",[52,98,101],{"icon":99,"title":100},"i-ph-tree-structure","Schema",[57,102,103,129,132,135],{},[60,104,105,106,109,110,109,113,109,116,109,119,109,122,109,125,128],{},"A column editor in CockroachDB's own spelling: ",[22,107,108],{},"INT8",", ",[22,111,112],{},"STRING",[22,114,115],{},"BYTES",[22,117,118],{},"TIMESTAMPTZ",[22,120,121],{},"JSONB",[22,123,124],{},"INET",[22,126,127],{},"GEOGRAPHY",".",[60,130,131],{},"Schemas, roles, enums, sequences, materialized views, functions and procedures.",[60,133,134],{},"Row-level security on 25.2 and later, triggers on 24.3 and later.",[60,136,137],{},"Schema checks, ER diagrams, and schema compare with the migration script.",[52,139,142],{"icon":140,"title":141},"i-ph-table","Data",[57,143,144,147,150],{},[60,145,146],{},"Enum dropdowns, foreign-key previews on hover, and edits applied in one transaction.",[60,148,149],{},"CSV and TSV in; CSV, TSV, JSON, SQL, Markdown and Excel out.",[60,151,152],{},"Fake rows that follow your foreign keys.",[52,154,157],{"icon":155,"title":156},"i-ph-clock-counter-clockwise","Backups the CockroachDB way",[57,158,159,166,169],{},[60,160,161,37,163,165],{},[22,162,36],{},[22,164,40],{}," for backups and restore points.",[60,167,168],{},"Move a database to another cluster or another engine, with a pre-flight report.",[60,170,171],{},"Sync rows between clusters, copying only what changed.",[52,173,176],{"icon":174,"title":175},"i-ph-code","SQL",[57,177,178,181,184],{},[60,179,180],{},"Completion for CockroachDB's schemas, tables and columns as you type.",[60,182,183],{},"AI that writes CockroachDB-compatible SQL and fixes failing queries.",[60,185,186],{},"Query Insights over the statements run from TableStudio, by you or your agents.",[188,189,191],"h2",{"id":190},"whats-postgres-only","What's Postgres-only",[10,193,194,195,198],{},"CockroachDB has no extensions, so the Postgres features built on them aren't offered: the index advisor, hidden indexes and the ",[22,196,197],{},"pg_stat"," dashboard packs, whose numbers CockroachDB answers with zeros. The visual query plan isn't available for CockroachDB yet either. TableStudio leaves them out rather than show you something misleading.",{"title":200,"searchDepth":201,"depth":201,"links":202},"",2,[203],{"id":190,"depth":201,"text":191},"Browse, edit and query CockroachDB in a native Mac app, run it on your Mac, back it up with its own BACKUP, and let your coding agent in without a free hand on production.","md",[207,210,213,216],{"label":208,"content":209},"Does TableStudio work with CockroachDB Cloud?","Yes. CockroachDB speaks the PostgreSQL protocol, and TableStudio connects to CockroachDB Cloud and self-hosted clusters, directly or over an SSH tunnel. Paste the connection string from the Connect dialog into Host.",{"label":211,"content":212},"How does it back up CockroachDB?","With CockroachDB's own BACKUP and RESTORE, since pg_dump doesn't work against it. Take a restore point before a risky change and roll back to it.",{"label":214,"content":215},"Is it just the Postgres client pointed at CockroachDB?","It connects the same way, but TableStudio knows the differences. It offers CockroachDB's own column types, uses BACKUP instead of pg_dump, and skips Postgres features CockroachDB answers with zeros, like the pg_stat-based dashboard packs, the index advisor and the visual plan.",{"label":217,"content":218},"Can I develop against CockroachDB locally?","Yes. TableStudio creates, starts and stops local CockroachDB servers on the cockroach binary, and can make a sandbox copy of a cloud database on your Mac.","CockroachDB","2026-10-29",{},true,"\u002Fdatabases\u002Fcockroachdb",{"title":225,"description":226},"CockroachDB GUI Client for Mac with a Safe MCP Server","TableStudio is a native Mac CockroachDB client (GUI). Local CockroachDB servers, BACKUP and RESTORE restore points, CockroachDB-aware column types, and a safe MCP server for coding agents.","4.databases\u002F7.cockroachdb","M8E-oBKDmPCFvZXlvqrv2ZQoLDmwoRKafBiNmBMv76E",1793299920587]