postgresRelation(endpoint, credential, data) with the CockroachDB
SQL host and port. Set "dialect": "cockroachdb" in the sealed PostgreSQL
connection JSON. Use a database password and SELECT on the table. Add
ca as PEM text if the endpoint uses a private CA. Pass the same label to the receiver binder and as the app’s data.
This profile uses PostgreSQL wire startup, password authentication over
verified TLS and extended query parameters. It verifies the declared
primary key through the CockroachDB information schema and catalog
descriptor IDs. It uses a read-only serializable transaction for each page,
UTF-8 byte comparison via convert_to, and no PostgreSQL table lock.
CockroachDB defaults to 64-bit INT. Use a complete primary key of one to
eight 64-bit integer or uncollated string columns. Explicitly declare
the key to avoid CockroachDB’s implicit row ID.
The installation commits up to 32 observations and a 48 KiB encoded page with the
last full key tuple. Each row JSON is capped at 24 KiB. An identity change
requires reset. A sweep can see concurrent writes, and missing keys stay
published. The mode offers table observations only. CockroachDB
changefeeds and writes have separate contracts.
PostgreSQL compatibility