Partial indices have been supported since SQLite 3.8, but Synapse now requires >= 3.27, so we can enable support for them. This requires rebuilding previous indices which were partial on PostgreSQL, but not on SQLite.
get_unread_event_push_actions_by_room
presence_stream
remove_deleted_devices_from_device_inbox
public_room_list_stream