postgresRelation(endpoint, credential, data) to a direct,
TLS-enabled YSQL endpoint, normally port 5433. Use the PostgreSQL 15-based
YSQL line, starting with YugabyteDB v2025.1. Use database password
authentication and a principal with SELECT on the table. Seal the
server CA as ca PEM text if it is outside the deployment trust store.
Bind the receiver and the mount under the same
data label.
YSQL supplies the PostgreSQL wire protocol, primary-key catalog and row
JSON functions. This profile also requires YSQL’s optional distributed
table locks for LOCK TABLE … IN ACCESS SHARE MODE. Use a cluster with
enable_object_locking_for_table_locks and
ysql_yb_ddl_transaction_block_enabled enabled. YugabyteDB documents
these settings as early access and incompatible with its CDC paths.
YSQL implements PostgreSQL’s repeatable-read setting with distributed
snapshot isolation. Each transaction observes one page using the full
one-to-eight-part bigint or text key in declaration order. The SQL
keyset determines cursor order independently of hash distribution.
The YCQL port and YugabyteDB CDC are separate APIs.
Bijection commits up to 32 rows and a 48 KiB encoded page with the last
key tuple. Each row JSON is capped at 24 KiB. A relation identity change
requires reset. A sweep can see concurrent writes, and missing keys stay
published.
YSQL compatibility and PostgreSQL versions ·
YSQL distributed table locks