I'm using pg_admin on to select a specific user by email address. The selection looks like this
SELECT id, public_id
FROM public.users
where email = 'user1@test-inger.com';
I know that the user exists with ID 102 with the exact string for the email. But the select returns nothing. Our investigation showns that all cases for the problem contain a '-' in the email. Maybe this input is relevant.
Now if I'm using pg_admin to update the email address from 'user1@testinger.com' to 'anything@toaster.com', commit the change and revert to the initial value 'user1@testinger.com' the select find the result. It almost appears to me that the table row is corrupt.
The project runs with docker and I'm using postgres:13.5-alpine3.15. I have now tried to bring the backup to my development env and the select works. Any ideas how this can be fixed would be apprechiated.