I’ve changed value column type in user_attribute table to varchar (without size), because I need to store larger values. But now I received error from postgresql:
ERROR: index row size 2744 exceeds btree version 4 maximum 2704 for index "idx_user_attribute_name"
The definition of this index is:
CREATE INDEX idx_user_attribute_name ON public.user_attribute USING btree (name, value)
Can I do something with it?
I was looking into change index to use md5, but then I need to change all queries inside Keycloak. I found only one - in UserEntity.java:
@NamedQuery(name="getRealmUsersByAttributeNameAndValue", query="select u from UserEntity u join u.attributes attr " +
"where u.realmId = :realmId and attr.name = :name and attr.value = :value")
Any ideas?