This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Trial tests against postgres 14 are failing since #11635 #14298
Labels
A-Message-Search
Searching messages
T-Task
Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.
X-Regression
Something broke which worked on a previous release
Comments
This was referenced Oct 26, 2022
I'm assuming that test is to blame---but tests did pass before this was merged in. So not sure what's going on. |
This didn't happen on the twisted trial job. Do we have a new flakey test---some kind of race? |
Reproduce with docker run --rm -e POSTGRES_PASSWORD=postgres -e POSTGRES_USER=postgres -e POSTGRES_DB=synapse -p 5432:5432 postgres:14-alpine &
SYNAPSE_POSTGRES=1 SYNAPSE_POSTGRES_HOST=127.0.0.1 SYNAPSE_POSTGRES_USER=postgres SYNAPSE_POSTGRES_PASSWORD=postgres poetry run trial tests.storage.test_room_search.MessageSearchTest.test_postgres_web_search_for_phrase I tried postgres versions 10--13. On each of these, the test succeeds. I wonder if the FTS behaviour has changed in PG 14? |
I'll take a look, thanks for filing! 🎉 |
Starting in Postgres 14 the behavior of a hanging double quote was changed; it used to ignore the double quote while now it treats it like a phrase. In PostgreSQL 11 - 13: postgres=# SELECT websearch_to_tsquery('english', '"fox quick');
websearch_to_tsquery
----------------------
'fox' & 'quick'
(1 row) In PostgreSQL 14: postgres=# SELECT websearch_to_tsquery('english', '"fox quick');
websearch_to_tsquery
----------------------
'fox' <-> 'quick'
(1 row) Not sure what the perfect fix is for this... |
See the release notes for psql 14 (and search for |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
A-Message-Search
Searching messages
T-Task
Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.
X-Regression
Something broke which worked on a previous release
Latest deps: https://github.com/matrix-org/synapse/actions/runs/3326877285/jobs/5501039194
Develop: https://github.com/matrix-org/synapse/actions/runs/3323214952/jobs/5493346783
From #11635.
The text was updated successfully, but these errors were encountered: