public inbox for [email protected]  
help / color / mirror / Atom feed
From: Rahman Duran <[email protected]>
To: Tom Lane <[email protected]>
Cc: [email protected]
Subject: Re: PostgreSQL 18.1 non deterministic collation "LIKE %abc%" performance
Date: Tue, 30 Dec 2025 10:07:22 +0300
Message-ID: <CA+jeBreFqkGc9f=_cBcMWkw_E5tTU_Rw4FQi6ehCDrTR17anUw@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <CA+jeBrejfchM60epUo1J3M8mMAQOcCWotpDP9QZYgEL=j0b=pg@mail.gmail.com>
	<[email protected]>

Tom Lane <[email protected]>, 30 Ara 2025 Sal, 09:51 tarihinde şunu yazdı:
>The fundamental problem here is not wanting to make assumptions about
>which character strings a non-deterministic collation will consider
>equal to which other character strings.  If you have concrete ideas
>about how to improve that, let's hear them.

Thanks for the explanations. I am just a user, not a DB developer :) So no
ideas I am afraid. I was just surprised that running the lower() function
on every column of every row is way faster than using nondeterministic
collation. I will test GIN index with trigram to see if it helps. If not I
will leave the code as is with lower() functions.

Regards,
Rahman Duran


view thread (2+ messages)

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: PostgreSQL 18.1 non deterministic collation "LIKE %abc%" performance
  In-Reply-To: <CA+jeBreFqkGc9f=_cBcMWkw_E5tTU_Rw4FQi6ehCDrTR17anUw@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox