Re: Slightly insane use of USE_WIDE_UPPER_LOWER in pg_trgm

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alexander Korotkov <aekorotkov(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Slightly insane use of USE_WIDE_UPPER_LOWER in pg_trgm
Date: 2013-04-07 18:00:17
Message-ID: 24336.1365357617@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Alexander Korotkov <aekorotkov(at)gmail(dot)com> writes:
> It's also likely we can change
> if (pg_database_encoding_max_length() > 1)
> into something like
> if (pg_database_encoding_max_length() > 1 && bytelen != charlen)

Hm, actually couldn't we just simplify to "if (bytelen != charlen)"?

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alexander Korotkov 2013-04-07 18:02:38 Re: Slightly insane use of USE_WIDE_UPPER_LOWER in pg_trgm
Previous Message Alexander Korotkov 2013-04-07 17:41:49 Re: Slightly insane use of USE_WIDE_UPPER_LOWER in pg_trgm