mirror of
https://github.com/t8y2/dbx.git
synced 2026-11-02 08:30:35 +00:00
OpenGauss is based on PostgreSQL 9.2 and does not support WITH ORDINALITY (PG 9.4+). When the native pg_get_tabledef() path fails, the fallback DDL builder calls list_indexes() which previously only had two SQL variants, both using WITH ORDINALITY — causing "syntax error at or near 'WITH'" on OpenGauss. Add POSTGRES_INDEXES_OPENGAUSS_SQL as a third fallback that uses generate_series and array_length instead, both available since PG 8.0.