mirror of
https://github.com/element-hq/synapse.git
synced 2026-11-22 10:27:13 +00:00
Fixes the portdb CI job. The portdb job fails since the `postgres:14` and `postgres:17` images moved to the November minor releases. Those servers set a `pg_attver` option on every column. An older `pg_dump` writes these out, and the values differ between the two databases. The final diff in test_synapse_port_db.sh is then never empty. Newer versions of `pg_dump` skip these. e.g. (from https://github.com/element-hq/synapse/actions/runs/43429570465/job/131901164169): ``` -ALTER TABLE ONLY public.worker_read_write_locks_mode ALTER COLUMN lock_name SET (pg_attver=90372280); -ALTER TABLE ONLY public.worker_read_write_locks_mode ALTER COLUMN lock_key SET (pg_attver=90372280); -ALTER TABLE ONLY public.worker_read_write_locks_mode ALTER COLUMN write_lock SET (pg_attver=90372280); -ALTER TABLE ONLY public.worker_read_write_locks_mode ALTER COLUMN token SET (pg_attver=90372280); +ALTER TABLE ONLY public.worker_read_write_locks_mode ALTER COLUMN lock_name SET (pg_attver=81324360); +ALTER TABLE ONLY public.worker_read_write_locks_mode ALTER COLUMN lock_key SET (pg_attver=81324360); +ALTER TABLE ONLY public.worker_read_write_locks_mode ALTER COLUMN write_lock SET (pg_attver=81324360); +ALTER TABLE ONLY public.worker_read_write_locks_mode ALTER COLUMN token SET (pg_attver=81324360); ```