pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Nick Renders <postgres@arcict.com>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Postgres 12.1 : UPPER() in WHERE clause restarts server
Date: Sat, 8 Feb 2020 12:16:48 -0800
Message-ID: <7f962c6c-936e-d023-cac9-b52edd663c14@aklaver.com> (raw)
In-Reply-To: <CEF2C288-13E6-4727-81D0-0775F40F313B@arcict.com>
References: <CEF2C288-13E6-4727-81D0-0775F40F313B@arcict.com>

On 2/8/20 12:09 PM, Nick Renders wrote:
> Hi,
> 
> We have just upgraded our Postgres 9.6 database to 12.1 (pg_dumpall -> 
> pg_restore on a clean installation) and now we are having some issues 
> with one of our tables.
> 
> When we do the following statement:
> 
>      SELECT * FROM f_gsxws_schedule WHERE UPPER(gwsc_dossier) = 'TEST'
> 
> the Postgres service restarts.
> 
> It seems that using UPPER() in the WHERE clause is causing this. The 
> same statement without UPPER() works just fine.
> 
> I have tried to emulate the issue with other tables, but 
> f_gsxws_schedule seems to be the only one.
> The table also has another character field that is indexed, and the same 
> problem occurs there. Whenever we use UPPER() or LOWER() to do a 
> case-insensitive search, the service reboots.
> 
> Looking at the table's definition, I don't see anything different with 
> the other tables.
> 
> Here is what is logged:
> 

> 
> Has anyone noticed anything like this before? Any idea how to fix this?

Was the upgrade on the same machine?

Or was the machine also upgraded/updated?

I ask as there have been similar reports having to with changes in glibc 
version affecting collation.

> 
> 
> Best regards,
> 
> Nick Renders
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (19+ messages)  latest in thread

Message-ID: <7f962c6c-936e-d023-cac9-b52edd663c14@aklaver.com>
Permalink:  ../7f962c6c-936e-d023-cac9-b52edd663c14@aklaver.com/
Also on:    postgresql.org/message-id/7f962c6c-936e-d023-cac9-b52edd663c14@aklaver.com

 · 

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 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, postgres@arcict.com
  Subject: Re: Postgres 12.1 : UPPER() in WHERE clause restarts server
  In-Reply-To: <7f962c6c-936e-d023-cac9-b52edd663c14@aklaver.com>
  References: <CEF2C288-13E6-4727-81D0-0775F40F313B@arcict.com> <7f962c6c-936e-d023-cac9-b52edd663c14@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