QoreDB LogoQoreDB

CockroachDB

Connect QoreDB to CockroachDB. Postgres-compatible wire protocol, port 26257, with a few CockroachDB-specific schema-browsing tweaks.

CockroachDB speaks the PostgreSQL wire protocol, so QoreDB connects to it through the same client stack as PostgreSQL. The dedicated CockroachDB driver is a thin layer on top: same DSN format, same SSL story, but with a few schema-browsing details adjusted to match CockroachDB's catalogs and a default port of 26257.

Quick connect

Paste a Postgres-style DSN and pick the CockroachDB engine. The default port is 26257, not 5432.

postgresql://USER:PASSWORD@HOST:26257/DATABASE
postgresql://USER:PASSWORD@HOST:26257/DATABASE?sslmode=verify-full

If you don't specify a database, QoreDB defaults to defaultdb, which is what CockroachDB ships with.

Connection fields

FieldRequiredNotes
HostYesHostname or IP. Cluster URL for managed services.
PortYesDefaults to 26257.
UserYesDatabase user.
PasswordOptionalStored encrypted in the vault.
DatabaseOptionalDefaults to defaultdb if omitted.
SSL modeOptionalOne of disable, prefer, require, verify-ca, verify-full.

SSL / TLS

Same modes as PostgreSQL:

ModeEncrypted?Server cert checked?Server hostname checked?
disableNoNoNo
preferIf offeredNoNo
requireYesNoNo
verify-caYesYesNo
verify-fullYesYesYes

CockroachDB Cloud (Serverless and Dedicated) requires verify-full and ships with a public CA cert. Self-managed clusters typically set up their own CA; you'll need to point the client at it (out of QoreDB's scope; ensure the cert is trusted by your OS or the CA file is on your system).

CockroachDB Cloud

Grab the connection string from the cluster's "Connect" panel:

postgresql://USER:PASSWORD@CLUSTER-NAME-XXXX.cloud.cockroachlabs.cloud:26257/defaultdb?sslmode=verify-full

Paste it into the URL field and click Parse. SSL is required by default for Cloud clusters.

Differences from PostgreSQL

CockroachDB is wire-compatible with Postgres but the underlying engine is different. A few practical points show up in QoreDB's schema browser:

  • System catalogs are filtered: the crdb_internal and pg_extension namespaces are hidden from the schema tree because they're noise for application work.
  • Tables and views only: CockroachDB doesn't have materialized views, so the schema tree shows tables and regular views, no materialized-view node.
  • Maintenance is limited: where Postgres exposes VACUUM, ANALYZE, REINDEX and friends, CockroachDB only exposes ANALYZE (it manages the rest itself with built-in jobs). The maintenance menus reflect this.

Day to day, your queries are identical to PostgreSQL. The biggest practical differences are at the application layer (CockroachDB's transaction model retries serialization conflicts more aggressively, no row-level triggers, slightly different TIMESTAMP handling), not in QoreDB itself.

Common issues

Where to go next

Newsletter

Stay updated on new releases

Subscribe to get product releases, new drivers notifications, and technical tutorials.

🎁 Bonus: Get our free SQL Performance Cheat Sheet — 9 pages, PostgreSQL / MySQL / SQLite (PDF)!