forked-synapse/synapse/storage
reivilibre 69afe3f7a0
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>
2023-11-13 16:03:22 +00:00
..
controllers Simplify event persistence code (#16584) 2023-11-03 07:30:31 -04:00
databases Use attempt_to_set_autocommit everywhere. (#16615) 2023-11-09 16:19:42 -05:00
engines Delete device messages asynchronously and in staged batches (#16240) 2023-09-06 09:30:53 +02:00
schema Add a Postgres REPLICA IDENTITY to tables that do not have an implicit one. This should allow use of Postgres logical replication. (#16456) 2023-11-13 16:03:22 +00:00
util Bulk-invalidate e2e cached queries after claiming keys (#16613) 2023-11-09 15:57:09 +00:00
__init__.py Rename storage classes (#12913) 2022-05-31 12:17:50 +00:00
_base.py Clear event caches when we purge history (#15609) 2023-06-08 13:14:40 +01:00
background_updates.py Use attempt_to_set_autocommit everywhere. (#16615) 2023-11-09 16:19:42 -05:00
database.py Convert simple_select_one_txn and simple_select_one to return tuples. (#16612) 2023-11-09 11:13:31 -05:00
keys.py Add cache to get_server_keys_json_for_remote (#16123) 2023-08-18 11:05:01 +01:00
prepare_database.py Run pyupgrade for python 3.7 & 3.8. (#16110) 2023-08-15 08:11:20 -04:00
push_rule.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
roommember.py mypy plugin to check @cached return types (#14911) 2023-10-02 14:22:36 +00:00
types.py Bump types-psycopg2 from 2.9.21.11 to 2.9.21.14 (#16381) 2023-09-25 17:48:42 +01:00