From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Hafeez Rahim <hafeez.rahim@mindcurv.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Index based search have issues with 11.20
Date: Tue, 17 Oct 2023 13:19:58 -0700
Message-ID: <f2aa4cf9-e8d4-400f-a331-e2993a3ce7f0@aklaver.com> (raw)
In-Reply-To: <CANV7R2SYCUBCwevY5EQ4SH72c4785gABvf-+8NXLAXvf6r4wnA@mail.gmail.com>
References: <CANV7R2SYCUBCwevY5EQ4SH72c4785gABvf-+8NXLAXvf6r4wnA@mail.gmail.com>
On 10/17/23 11:24, Hafeez Rahim wrote:
>
> Hi
>
> This is to check regarding an issue we came across on postgreSQL
> community version 11 with minor patch 11.20 along with few other changes
> change details mention on end part of this mail
>
> The issue is notice after the minor patching from postgreSQL 11.16 to 11.20
> The particular database runs on a dockerized platform
>
> Issue :
>
> One of the table query not woks when string values are filtered with =
> clause
> where as the query works with like clause using '%' flag or using
> trim(column)
> below are query examples describes the problem
>
> not working
>
> select * from atlas_order.gdp_ship_logistic_food cgslf where
> shipping_group_id = '2VxFRCOG9tc7SjQ2Ogg0bveve96';
>
> working
>
> select * from atlas_order.gdp_ship_logistic_food cgslf where
> shipping_group_id like '%2VxFRCOG9tc7SjQ2Ogg0bveve96%';
> select * from atlas_order.gdp_ship_logistic_food cgslf where
> shipping_group_id like '2VxFR%COG9tc7SjQ2Ogg0bveve96';
> select * from atlas_order.gdp_ship_logistic_food cgslf where
> trim(shipping_group_id) = '2VxFR%COG9tc7SjQ2Ogg0bveve96';
>
> Later as per the feedback from dev we have dropped and recreated the
> constraints and rebuild the indexes of the affected tables
> and the data is accessibleafter on
I would say the above is due to the distro change below.
> 2. Change docker container base image from Debian to Alpine (Debian
> Bookworm - alpine3.18)
My guess something along lines of:
https://wiki.postgresql.org/wiki/Locale_data_changes
Changing distro's mid stream increases the likely hood there will be issues.
--
Adrian Klaver
adrian.klaver@aklaver.com
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, hafeez.rahim@mindcurv.com
Subject: Re: Index based search have issues with 11.20
In-Reply-To: <f2aa4cf9-e8d4-400f-a331-e2993a3ce7f0@aklaver.com>
References: <CANV7R2SYCUBCwevY5EQ4SH72c4785gABvf-+8NXLAXvf6r4wnA@mail.gmail.com> <f2aa4cf9-e8d4-400f-a331-e2993a3ce7f0@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox