Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uwhI7-006NUu-2o for pgsql-bugs@arkaria.postgresql.org; Thu, 11 Sep 2025 13:24:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uwhI4-007XDI-Vh for pgsql-bugs@arkaria.postgresql.org; Thu, 11 Sep 2025 13:24:45 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uwhI4-007XDA-Lw for pgsql-bugs@lists.postgresql.org; Thu, 11 Sep 2025 13:24:45 +0000 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uwhI3-001qb0-1j for pgsql-bugs@lists.postgresql.org; Thu, 11 Sep 2025 13:24:44 +0000 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-45b9a856dc2so4620235e9.0 for ; Thu, 11 Sep 2025 06:24:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1757597082; x=1758201882; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=Y8dqKGQnPzQQRMGjKCXXQzxXx9PQRoXl+fowzDSqET8=; b=OcrB8VOxUuRlZwQ3ezk/Ot0GMesRrqOHjttfNAjNvYOCury4GccluhRrKUZTbDfL4d YXSYfHf/abcO+tu93HONFz4yfOmK39dF75zEkQfNhieVAw6bgUa7rbzpIZECic/3QWoq sg66j/Uz6XtSjuUd4sSV/10JlrTZ5XIz1m+Om85e3ypFk9es05jIdUbElWPIsjFim6o1 55q7ufwCjXIq34SfTkI7s9NAYuovM5Tg40OrwIB4yRkOdhwwfz3JPDg0QCmVLRXJ3E8L +WH245vhR8RAa/9IiP6HTyL1N+oFY6H4Lnv8HGAkOBCSwWXJn6s4OXZuFubMDXz8b6WJ 6Caw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757597082; x=1758201882; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Y8dqKGQnPzQQRMGjKCXXQzxXx9PQRoXl+fowzDSqET8=; b=vDnbjaSaAUUJdnQXx/Ptbm9YYQTZe45bpZ+70C5dh+B4l+nHjr4PH7qoDX7RhJJWui 97LAQzURRTklefq0U8P6gI7kC/pjG3YO/BtoNZ9i+1WwXyPD6bjtd24+rOyigiw4zqla gBBuO/RwjheCwch4HlNqBd3q6jkEpm5RWl+0gjeEQCeom8KFabiV9eyUBYqi3p3sflgQ KSABR6GPFZ3uLkiQozGaMHayZUKksWbsQg2dil/nGXsR6A0I5tt85Q9MtliXJLFQiQpi +rXPku3/JOzmf+XjWXWn0sJJcMaO6jINryfiCksO9hACxhTfbaSCbiw/WhPS5ItRJjCU P5SQ== X-Forwarded-Encrypted: i=1; AJvYcCVM9LiV0BF2I6Z6ovOyzXkfJ1gEcq25pGZiv7B3p55STfVFk9DN/a+dtlhyVqawEXd3XGA30JMDjOny@lists.postgresql.org X-Gm-Message-State: AOJu0Yxmto1ahpbnVSj7P760wrw9xKExv3D5rPn/JWvBJv31XaMHcl8p OXZ1zyMdnT9KoKHWBduNzTCZ8OCvEI8tAS3IoZf7DZqiYYCks2v4oVoI15qOHdPXWdiLlmEOmE2 ZoMmY X-Gm-Gg: ASbGncs8R7AfuXSRESfuq1zQumygZ6LN3brFzb7L3DEDR3Ng1wTttA6G+E7IJVECPcN Z0PB+6wA6W0dTcrSQGvh549cCr6nZqF3uJDzwr1aD7QttYAxKDi0w45dKnRBuOP5jiI6Cy5Lh/G 2TJ6sPf4SeBcdlvcQ7yEYtGq68NTem22T2DgBVHimPKUVqBWkosLUYZIkWPfv8OGUMlfQSIjydT xBe1MYLQnfNxRs+mfs04RB6oOxqN/gks8bp5t2JXlMGxj26iLULw2TLmU8mQxViyfHJ+qRB7qLo IobSQk3NRA+1MsyrF6cpKHaZk4Zy39s04vaHTNqz5gLm+W2tklSz+7+AWK2hIBZkdhSftvYu+5y 6tgq2CSbZpRhStQz+gQiJnAwkTogZbkPpjQU/4BQ1+yZd3ZdLHDf1 X-Google-Smtp-Source: AGHT+IHGUPXuRz4I46HU3tyExt4mHw+1O3ITE0xomSMP0DNz+jc+4TE7v2F6yvbueOBZXpwijDmZ6A== X-Received: by 2002:a05:600c:4f09:b0:45d:e54b:fa29 with SMTP id 5b1f17b1804b1-45ded923f53mr87539515e9.14.1757597081682; Thu, 11 Sep 2025 06:24:41 -0700 (PDT) Received: from laurenz.albe-K4N0CV00F97414D ([2001:871:5e:84bb:85ec:e461:35e8:b6e4]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3e7607e13f4sm2449963f8f.57.2025.09.11.06.24.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Sep 2025 06:24:41 -0700 (PDT) Message-ID: Subject: Re: PostgreSQL Windows Turkish Search Problem From: Laurenz Albe To: Halil =?UTF-8?Q?=C4=B0brahim?= AYHAN , "pgsql-bugs@lists.postgresql.org" Date: Thu, 11 Sep 2025 15:24:40 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2 (3.56.2-2.fc42) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 2025-09-11 at 07:42 +0000, Halil =C4=B0brahim AYHAN wrote: > I am using PostgreSQL Windows version as Turkish Collation > The table contains the record "=C5=9E=C4=B0L=C4=B0" and "=C5=9Fili", > When I Search with ILike, It Does Not Perform Case-Insensitive Searches, > When I search with uppercase letters, I get 1 result, and when I search w= ith lowercase letters, I get 1 result. > There is no problem with Turkish Collection in Linux Version and 2 result= s are given. > This problem occurs in Windows version. There is a lack of SQL statements in your report, but I assume this is either a user error or a shortcoming of the Windows C library, both of which are not under our control. Try like this: CREATE COLLATION turkish_ci ( PROVIDER =3D icu, DETERMINISTIC =3D FALSE, LOCALE =3D 'tr-TR@colStrength=3Dlevel2' ); CREATE TABLE tr (st text COLLATE turkish_ci); INSERT INTO tr VALUES ('=C5=9E=C4=B0L=C4=B0'), ('=C5=9Fili'); SELECT * FROM tr WHERE st =3D '=C5=9Fili'; st =20 =E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90 =C5=9E=C4=B0L=C4=B0 =C5=9Fili (2 rows) You could also define the column with a different collation and add the COLLATE clause in the query. Yours, Laurenz Albe