Thanks for your answers.
@Amit Langote: I had a look and found out that pg_bigm doesn't support similar matches
@Dann Corbit: The idea with the sequences makes sence. I had a look and I'm not sure, if they support similar sequences
Janek
Чтобы сделать работу с сайтом удобнее, мы используем cookie и аналитический сервис «Яндекс.Метрика». Продолжая пользоваться сайтом, вы соглашаетесь с их использованием.