You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems like an issue that upstream might be interested in, we only package Postgres into the container and maintain the respective entrypoint file so I don't think there's anything actionable we could do at the Dockerfile level to alleviate this
The main caveat to note is that it does use musl libc instead of glibc and friends, so software will often run into issues depending on the depth of their libc requirements/assumptions.
I found the problem is related to this issue. #327
select 'a' < 'A' query returns false for alpine docker, because postgres compiled using musl library ignores LANG=en_US.utf8 in Dockerfile, and sets default collation as "C".
When I tried the following query, there was a difference in results between the alpine version and the normal version.
On the other hand, the comparison with
=
behaved case-sensitive.I have confirmed that the same behavior is observed in the normal and alpine versions of ver 10, 11, 12, and 13.
The code for verification is placed here.
https://github.com/ryan5500/postgresql-docker-str-comparison-sample
Regarding the
select 'a' < 'A'
query, is this what you intended?The text was updated successfully, but these errors were encountered: