starrocks_fdw
starrocks_fdw · TencentDB for PostgreSQL foreign data wrapper for querying StarRocks tables through a MySQL-compatible interface.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101164 | starrocks_fdw | starrocks_fdw | 1.2 | FDW | Unknown | C |
PostgreSQL · 13, 14, 15, 16, 17, 18
Usage
Sources:
starrocks_fdw is a Tencent Cloud PostgreSQL provider extension that exposes StarRocks tables as PostgreSQL foreign tables for hot/cold data separation. It is compatible with the mysql_fdw usage model but includes Tencent Cloud connection-routing options; this is a managed-provider feature, not a portable upstream extension workflow.
Core Workflow
The StarRocks service must already be reachable from the Tencent Cloud PostgreSQL instance. Create the extension, a foreign server, a user mapping, and a foreign table that names the StarRocks database and table.
Tencent Cloud’s example also attaches a foreign table as a partition of a local partitioned table, allowing local and StarRocks-backed partitions to be queried through one parent.
Provider and Security Boundaries
The official document states support only for Tencent Cloud PostgreSQL 13 builds at v13.14_r1.17 or later. Availability, server-option values, and network routing are controlled by the Tencent Cloud service; confirm them for the specific instance rather than assuming community PostgreSQL compatibility.
Credentials reside in the PostgreSQL user mapping, while server options contain cloud account and network identifiers. Restrict ownership and catalog visibility, use a dedicated least-privilege StarRocks account, and keep PostgreSQL and StarRocks column types aligned. Remote reads depend synchronously on StarRocks and the VPC path, so include remote latency and outages in query planning and monitoring.