0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-05 22:28:54 +01:00
synapse/tests/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
..
databases Bulk-invalidate e2e cached queries after claiming keys (#16613) 2023-11-09 15:57:09 +00:00
util Replace make_awaitable with AsyncMock (#16179) 2023-08-24 19:38:46 -04:00
__init__.py Reference Matrix Home Server 2014-08-12 15:10:52 +01:00
test__base.py Convert simple_select_list and simple_select_list_txn to return lists of tuples (#16505) 2023-10-26 13:01:36 -04:00
test_account_data.py Fix a long-standing bug where an initial sync would not respond to changes to the list of ignored users if there was an initial sync cached. (#15163) 2023-02-28 17:11:26 +00:00
test_appservice.py Bump mypy-zope & mypy. (#16188) 2023-08-29 10:38:56 -04:00
test_background_update.py Remove more usages of cursor_to_dict. (#16551) 2023-10-26 15:12:28 -04:00
test_base.py Convert simple_select_one_txn and simple_select_one to return tuples. (#16612) 2023-11-09 11:13:31 -05:00
test_cleanup_extrems.py Return an immutable value from get_latest_event_ids_in_room. (#16326) 2023-09-18 09:29:05 -04:00
test_client_ips.py Convert simple_select_list and simple_select_list_txn to return lists of tuples (#16505) 2023-10-26 13:01:36 -04:00
test_database.py 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
test_devices.py Prepare unit tests for Python 3.12 (#16099) 2023-08-25 15:05:10 -04:00
test_directory.py Require types in tests.storage. (#14646) 2022-12-09 12:36:32 -05:00
test_e2e_room_keys.py Re-introduce the outbound federation proxy (#15913) 2023-07-18 09:49:21 +01:00
test_end_to_end_keys.py Prepare unit tests for Python 3.12 (#16099) 2023-08-25 15:05:10 -04:00
test_event_chain.py Convert simple_select_many_batch, simple_select_many_txn to tuples. (#16444) 2023-10-11 13:24:56 -04:00
test_event_federation.py Update ruff config (#16283) 2023-09-08 11:24:36 -04:00
test_event_metrics.py Remove unused room_alias field from /createRoom response (#15093) 2023-02-22 11:07:28 +00:00
test_event_push_actions.py Bump black from 22.12.0 to 23.1.0 (#15103) 2023-02-22 15:29:09 -05:00
test_events.py Add final type hint to tests.unittest. (#15072) 2023-02-14 14:03:35 -05:00
test_id_generators.py Fix bug where a new writer advances their token too quickly (#16473) 2023-10-23 16:57:30 +01:00
test_main.py Remove remaining usage of cursor_to_dict. (#16564) 2023-10-31 13:13:28 -04:00
test_monthly_active_users.py Bump mypy-zope & mypy. (#16188) 2023-08-29 10:38:56 -04:00
test_profile.py Remove more usages of cursor_to_dict. (#16551) 2023-10-26 15:12:28 -04:00
test_purge.py Re-introduce the outbound federation proxy (#15913) 2023-07-18 09:49:21 +01:00
test_receipts.py Remove unused room_alias field from /createRoom response (#15093) 2023-02-22 11:07:28 +00:00
test_redaction.py Add a class UnpersistedEventContext to allow for the batching up of storing state groups (#14675) 2023-02-09 13:05:02 -08:00
test_registration.py Refactor get_user_by_id (#16316) 2023-09-14 12:46:30 +01:00
test_relations.py Accept threaded receipts for events related to the root event. (#14174) 2022-10-14 18:05:25 +00:00
test_rollback_worker.py Re-introduce the outbound federation proxy (#15913) 2023-07-18 09:49:21 +01:00
test_room.py Convert simple_select_one_txn and simple_select_one to return tuples. (#16612) 2023-11-09 11:13:31 -05:00
test_room_search.py Run pyupgrade for python 3.7 & 3.8. (#16110) 2023-08-15 08:11:20 -04:00
test_roommember.py Convert simple_select_list and simple_select_list_txn to return lists of tuples (#16505) 2023-10-26 13:01:36 -04:00
test_state.py Convert simple_select_list and simple_select_list_txn to return lists of tuples (#16505) 2023-10-26 13:01:36 -04:00
test_stream.py Add final type hint to tests.unittest. (#15072) 2023-02-14 14:03:35 -05:00
test_transactions.py Allow config of the backoff algorithm for the federation client. (#15754) 2023-08-03 14:36:55 -04:00
test_txn_limit.py Update ruff config (#16283) 2023-09-08 11:24:36 -04:00
test_unsafe_locale.py Add final type hint to tests.unittest. (#15072) 2023-02-14 14:03:35 -05:00
test_user_directory.py Convert simple_select_list and simple_select_list_txn to return lists of tuples (#16505) 2023-10-26 13:01:36 -04:00
test_user_filters.py Remove more usages of cursor_to_dict. (#16551) 2023-10-26 15:12:28 -04:00