element-hq / dendrite

Dendrite is a second-generation Matrix homeserver written in Go!
https://element-hq.github.io/dendrite/
GNU Affero General Public License v3.0
33 stars 5 forks source link

Duplicate indexes present on PostgreSQL #3389

Open matrixbot opened 2 weeks ago

matrixbot commented 2 weeks ago

This issue was originally created by @Omar007 at https://github.com/matrix-org/dendrite/issues/3389.

Background information

Description

Steps to reproduce

Indexes in question: Table Affected Columns Index 1 Index 2
federationsender_queue_edus json_nid federationsender_queue_edus_nid_idx federationsender_queue_edus_json_nid_idx
federationsender_queue_pdus json_nid federationsender_queue_pdus_json_nid_idx federationsender_queue_pdus_pdus_json_nid_idx
federationsender_relay_servers server_name federationsender_relay_servers_server_name_idx federationsender_relay_server_server_name_relay_server_name_key
keyserver_one_time_keys user_id, device_id keyserver_one_time_keys_idx keyserver_one_time_keys_unique
syncapi_output_room_events room_id syncapi_output_room_events_room_id_idx syncapi_output_room_events_recent_events_idx
syncapi_peeks room_id syncapi_peeks_room_id_idx syncapi_peeks_room_id_user_id_device_id_key
syncapi_presence user_id syncapi_presence_user_id presence_presences_unique
syncapi_receipts room_id syncapi_receipts_room_id syncapi_receipts_unique
userapi_pushers app_id, pushkey userapi_pusher_app_id_pushkey_idx userapi_pusher_app_id_pushkey_localpart_idx
matrixbot commented 2 weeks ago

This comment was originally posted by @Omar007 at https://github.com/matrix-org/dendrite/issues/3389#issuecomment-2178553762.

Here is the same result/information from a pgHero deployment:
pghero