Legacy system, backed by SQL Server, has unique indexes using collation Latin1_General_CP1_CI_AI
. It compares things using charset Latin 1, encoded using CP-1252 (CP1
part), case insensitive, accent insensitive.
Which collation should I use in Postgres to get exactly the same behavior?
pg_collation
to see the available collations. If none matches your needs, you can create your own ICO collation. There are several posts here and on stackoverflow.com on how to create a case-insensitive ICU collation