synapse/tests
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
..
api Refactor get_user_by_id (#16316) 2023-09-14 12:46:30 +01:00
app Run pyupgrade for python 3.7 & 3.8. (#16110) 2023-08-15 08:11:20 -04:00
appservice Send the opentracing span information to appservices (#16227) 2023-09-06 15:19:17 -04:00
config Describe which rate limiter was hit in logs (#16135) 2023-08-30 00:39:39 +01:00
crypto Refactor storing of server keys (#16261) 2023-09-12 11:08:04 +01:00
events Replace simple_async_mock with AsyncMock (#16180) 2023-08-25 09:27:21 -04:00
federation Remove more usages of cursor_to_dict. (#16551) 2023-10-26 15:12:28 -04:00
handlers Convert simple_select_one_txn and simple_select_one to return tuples. (#16612) 2023-11-09 11:13:31 -05:00
http Bump twisted from 23.8.0 to 23.10.0 (#16588) 2023-11-01 10:23:13 +00:00
logging Update ruff config (#16283) 2023-09-08 11:24:36 -04:00
media Return attrs for more media repo APIs. (#16611) 2023-11-09 11:00:30 -05:00
metrics Remove support for Python 3.7 (#15851) 2023-07-05 18:45:42 -05:00
module_api Add new module API for adding custom fields to events unsigned section (#16549) 2023-10-27 09:04:08 +00:00
push Add the List-Unsubscribe header for notification emails. (#16274) 2023-09-11 09:49:48 -04:00
replication Allow multiple workers to write to receipts stream. (#16432) 2023-10-25 16:16:19 +01:00
rest Convert simple_select_one_txn and simple_select_one to return tuples. (#16612) 2023-11-09 11:13:31 -05:00
scripts Add more missing type hints to tests. (#15028) 2023-02-08 16:29:49 -05:00
server_notices Bump mypy-zope & mypy. (#16188) 2023-08-29 10:38:56 -04:00
state Improve state types. (#16395) 2023-09-28 07:01:46 -04:00
storage 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_utils Replace simple_async_mock with AsyncMock (#16180) 2023-08-25 09:27:21 -04:00
types Use immutabledict instead of frozendict (#15113) 2023-03-22 17:15:34 +00:00
util Fix a bug where servers could be marked as up when they were failing (#16506) 2023-10-17 07:32:40 -04:00
__init__.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
server.py Use attempt_to_set_autocommit everywhere. (#16615) 2023-11-09 16:19:42 -05:00
test_distributor.py Add missing type hints to tests. (#15027) 2023-02-08 19:52:37 +00:00
test_event_auth.py Add missing type hints to tests. (#15027) 2023-02-08 19:52:37 +00:00
test_federation.py Return an immutable value from get_latest_event_ids_in_room. (#16326) 2023-09-18 09:29:05 -04:00
test_mau.py Bump black from 22.12.0 to 23.1.0 (#15103) 2023-02-22 15:29:09 -05:00
test_phone_home.py Add final type hint to tests.unittest. (#15072) 2023-02-14 14:03:35 -05:00
test_rust.py Add missing type hints to tests. (#15027) 2023-02-08 19:52:37 +00:00
test_server.py Re-introduce the outbound federation proxy (#15913) 2023-07-18 09:49:21 +01:00
test_state.py Bump mypy-zope & mypy. (#16188) 2023-08-29 10:38:56 -04:00
test_terms_auth.py Prepare unit tests for Python 3.12 (#16099) 2023-08-25 15:05:10 -04:00
test_test_utils.py Add missing type hints to tests. (#15027) 2023-02-08 19:52:37 +00:00
test_types.py Add missing type hints to tests. (#15027) 2023-02-08 19:52:37 +00:00
test_visibility.py Update ruff config (#16283) 2023-09-08 11:24:36 -04:00
unittest.py Fix type hint errors from Twisted trunk (#16526) 2023-10-23 14:28:05 -04:00
utils.py Use dbname instead of database for Postgres config. (#16618) 2023-11-09 14:40:45 -05:00