mattermost/server
Alejandro García Montoro fddd4a70bc
Some checks failed
ESR Upgrade / Run ESR upgrade script from 5.37 to 7.8 (push) Has been cancelled
ESR Upgrade / Run ESR upgrade script from 5.37 to 6.3 (push) Has been cancelled
ESR Upgrade / Run ESR upgrade script from 6.3 to 7.8 (push) Has been cancelled
Server CI Master / master-ci (push) Has been cancelled
Web App CI Master / master-ci (push) Has been cancelled
Avoid simple config when doing FTS in Postgres (#35063) (#35179)
This commit reverts PR #30214, which addressed bug MM-60790 but caused a
performance regression tracked by MM-66782.

This revert has two implications:

1. The performance issue is solved.
2. The original bug is re-introduced.

Re-introducing the original bug seems not to be ideal, but I argue that
the original PR did not actually fix the bug:

- Before that PR, looking for a quoted string would return additional
  results: the UX was slightly confusing, because when the user looked
  for the word "stateful", the results would contain matches like
  "states" (see MM-60790).
- After that PR, looking for a quoted string can timeout, so that the
  list of results becomes empty. The UX here may be less confusing,
  since the user simply doesn't find what they're looking for, and they
  may assume that string is not present in any post, but it's completely
  wrong: the result list is empty because the SQL query timed out and
  thus the endpoint returned 0 results.

The solution to the original issue should be addressed via
Elasticsearch, which should provide a more refined and precise search
results.

For more information on the investigation on this issue and the
motivation behind the revert, see
https://mattermost.atlassian.net/wiki/x/IYAk_w

Co-authored-by: Mattermost Build <build@mattermost.com>
2026-02-04 13:00:44 +01:00
..
bin Mono repo -> Master (#22553) 2023-03-22 17:22:27 -04:00
build remove leftover mysql apt-key (#33708) (#33711) 2025-08-14 10:50:08 +03:00
channels Avoid simple config when doing FTS in Postgres (#35063) (#35179) 2026-02-04 13:00:44 +01:00
cmd Manual Cherrypick: Add audits for accessing posts without membership (#31266) (#35022) 2026-01-26 12:23:28 +02:00
config Cherry-pick MM-66789: Restrict log downloads to a root path for support packets (#35164) 2026-02-02 21:23:28 +02:00
einterfaces [MM-63152] LDAP Wizard (#31417) 2025-06-16 16:19:33 -04:00
enterprise [MM-63557] mmctl: Add compliance export create cmd (#30594) 2025-06-24 21:38:30 +00:00
fonts Mono repo -> Master (#22553) 2023-03-22 17:22:27 -04:00
i18n Patch MM-67126 issue (#35142) 2026-02-02 12:53:32 +02:00
platform Manual Cherrypick: Add audits for accessing posts without membership (#31266) (#35022) 2026-01-26 12:23:28 +02:00
public Cherry-pick MM-66789: Restrict log downloads to a root path for support packets (#35164) 2026-02-02 21:23:28 +02:00
scripts Mirror postgres-13 image (#30047) 2025-01-30 15:18:09 +01:00
templates MM-59966 - Compliance Export overhaul - feature branch (#29789) 2025-01-10 16:56:02 -05:00
tests Report a problem (#30444) 2025-04-25 11:08:39 +02:00
.gitignore Update .server/gitignore to ignore all JSON files under the directory (#27593) 2024-07-11 09:12:57 +02:00
.go-version ugprade to go 1.24.6 (#34004) (#34023) 2025-10-01 11:30:41 -03:00
.golangci.yml [MM-64502] Fix errcheck linter errors in channel_test.go (#31309) 2025-06-19 14:13:45 +02:00
.sass-lint.yml Mono repo -> Master (#22553) 2023-03-22 17:22:27 -04:00
config.mk MM-59934: Add Redis to CI and other improvements (#28164) 2024-09-18 19:13:44 +05:30
copyright.txt Mono repo -> Master (#22553) 2023-03-22 17:22:27 -04:00
docker-compose.makefile.m1.yml Remove obsolete docker version (#30040) 2025-01-30 12:53:25 -07:00
docker-compose.makefile.yml Remove obsolete docker version (#30040) 2025-01-30 12:53:25 -07:00
docker-compose.yaml Remove obsolete docker version (#30040) 2025-01-30 12:53:25 -07:00
go.mod Manual cherry-pick MM-66167 fix (#35061) (#35087) 2026-01-28 13:53:28 +02:00
go.sum Manual cherry-pick MM-66167 fix (#35061) (#35087) 2026-01-28 13:53:28 +02:00
Makefile Manual cherry-pick MM-66167 fix (#35061) (#35087) 2026-01-28 13:53:28 +02:00
path.go Centralize the GetPackagePath (#27004) 2024-05-15 12:05:13 -03:00