pgschema icon indicating copy to clipboard operation
pgschema copied to clipboard

Support CockroachDB (PostgreSQL wire protocol)

Open RKxeland opened this issue 10 months ago • 1 comments

I’m trying to use pgschema with CockroachDB, which supports the PostgreSQL wire protocol and is commonly used as a PostgreSQL-compatible distributed database.

CockroachDB version output:

SELECT version();
-- CockroachDB CCL v25.4.1-1-g55e9e9d822f (x86_64-pc-linux-gnu, built 2025/12/16 19:50:28, go1.23.12 X:nocoverageredesign)

SHOW server_version_num;
-- 130000

When connecting to CockroachDB, pgschema fails during PostgreSQL version detection with the following error:

Error: failed to detect PostgreSQL version: unsupported PostgreSQL version 13 (supported: 14-18)

RKxeland avatar Feb 03 '26 16:02 RKxeland

No plan to support those not that compatible.

https://github.com/secp256k1-sha256/postgres-compatibility-index

tianzhou avatar Feb 05 '26 17:02 tianzhou