-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bitnami/postgresql] to_tsquery result discrepancy between bitnami image and official postgres image #76045
Comments
Further findings. It seems like the when the official postgres image picked up that my default_text_search_config should be "english" instead of "simple". By creating my query like so I still wonder why there is a difference in behaviour. 🤔 |
Hi @quinlanjager, thanks for using bitnami containers I tried to reproduce the issue you share but I couldn't. These are the steps I followed and the results: $ docker run --rm --name bitnami -d -e ALLOW_EMPTY_PASSWORD=yes bitnami/postgresql
a1f309fd0898c7cf6b76d1f8337f624a796fe7abedc365b62779ff05ce5e75b6
$ docker exec -it bitnami psql -U postgres
psql (17.0)
Type "help" for help.
postgres=# SELECT
postgres-# to_tsvector('pg_catalog.english', 'title here the body text is here'),
postgres-# to_tsquery('title & body') as search_query,
postgres-# to_tsvector('pg_catalog.english', 'title here the body text is here') @@ to_tsquery('title & body') AS has_match
postgres-# ;
to_tsvector | search_query | has_match
----------------------------+------------------+-----------
'bodi':4 'text':5 'titl':1 | 'title' & 'body' | f
(1 row)
postgres=# Are you using an existing database? Not sure if the issue could be relate to your locale configuration. |
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback. |
Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary. |
Name and Version
bitnami/postgresql:latest
What architecture are you using?
arm64
What steps will reproduce the bug?
What is the expected behavior?
What do you see instead?
Additional information
The "expected behaviour" was taken from a docker container running the latest official postgres image (was version 17.2). However, I also saw this result using official postgres 15.4, 15.6 and 16.
It might be just a coincidence but I also saw reproduced the "bug" behaviour on an Amazon RDS instance running postgres 15.4.
The query itself is adapted from Postgres' documentation.
The text was updated successfully, but these errors were encountered: