Providers

CockroachDB

Distributed SQL — Cloud Connect dialog, verify-full + CA cert, CSL license, port 26257.

CockroachDB speaks Postgres wire closely enough that drivers.store.sql stays postgres. Multi-region and distributed transactions are Cockroach's concern beneath that protocol.

The one rule

Use the Cloud Console Connect dialog and keep sslmode=verify-full with the downloaded CA — sslmode=require alone is rejected for secure clusters.

Find credentials (current console)

  1. Open CockroachDB Cloud → your cluster.
  2. Click Connect (cluster overview / top right).
  3. Open the Connection string tab (or General connection string).
  4. Expand Download CA Cert — run the provided command so root.crt lands in the default Postgres cert directory (or note the path).
  5. Copy the postgresql://… string; paste the password when prompted (shown once for new SQL users — reset under SQL Users if lost).
process env
DATABASE_URL=postgresql://user:password@….cockroachlabs.cloud:26257/defaultdb?sslmode=verify-full&sslrootcert=/path/to/root.crt

Default SQL port is 26257, not 5432.

Production guidance

TopicGuidance
TLSverify-full + sslrootcert — required for Cloud
PoolingPrefer Cockroach's guidance / built-in limits; do not assume Neon-style -pooler hosts
RegionsConfigure survivability in the Console — opaque to the postgres driver

CockroachDB Software License (since Nov 2024): Core open-source discontinued; free for orgs under $10M ARR with community support; paid tiers add dedicated support. Not OSI open source.

Query performance

Unsupported

CockroachDB does not expose pg_stat_statements. Store → Performance returns PgStatStatementsUnsupported. oke does not shim statement_statistics.

StepWhat you do
PreloadNot applicable
CreateNot applicable
ConsoleStructured unavailable — use Cockroach's console

Real gotcha — CA cert path

Copying the connection string without downloading the CA yields TLS verify failures even when the password is correct. The Connect dialog's download command and sslrootcert= must agree on the same file path in the environment that runs the app.

Troubleshooting

Learn more

Next

On this page