Add a Postgres `REPLICA IDENTITY` to tables that do not have an implicit one....
Add a Postgres `REPLICA IDENTITY` to tables that do not have an implicit one. This should allow use of Postgres logical replication. (#16456) * Add Postgres replica identities to tables that don't have an implicit one Fixes #16224 * Newsfile Signed-off-by:Olivier Wilkinson (reivilibre) <oliverw@matrix.org> * Move the delta to version 83 as we missed the boat for 82 * Add a test that all tables have a REPLICA IDENTITY * Extend the test to include when indices are deleted * isort * black * Fully qualify `oid` as it is a 'hidden attribute' in Postgres 11 * Update tests/storage/test_database.py Co-authored-by:
Patrick Cloke <clokep@users.noreply.github.com> * Add missed tables --------- Signed-off-by:
Olivier Wilkinson (reivilibre) <oliverw@matrix.org> Co-authored-by:
Patrick Cloke <clokep@users.noreply.github.com>
Showing
- changelog.d/16456.misc 1 addition, 0 deletionschangelog.d/16456.misc
- synapse/storage/schema/main/delta/83/04_replica_identities.sql.postgres 88 additions, 0 deletions...e/schema/main/delta/83/04_replica_identities.sql.postgres
- synapse/storage/schema/state/delta/83/05_replica_identities_in_state_db.sql.postgres 30 additions, 0 deletions...e/delta/83/05_replica_identities_in_state_db.sql.postgres
- tests/storage/test_database.py 83 additions, 1 deletiontests/storage/test_database.py
changelog.d/16456.misc
0 → 100644