From: Nick Renders <postgres@arcict.com>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Postgres 12.1 : UPPER() in WHERE clause restarts server
Date: Mon, 24 Feb 2020 13:48:18 +0100
Message-ID: <54EB66FD-6FDF-4B1B-9DCC-195112013AA9@arcict.com> (raw)
In-Reply-To: <A2345E27-7BB3-411B-B4D1-1572BBA4FC03@arcict.com>
References: <CEF2C288-13E6-4727-81D0-0775F40F313B@arcict.com>
<24448274-3B25-411F-8A9D-286E2EFDC65F@arcict.com>
<CA+hUKGLT9NQrYrjuN8RaFb=Zim5wALCgFSvS4W0KKxBic0ik-w@mail.gmail.com>
<A2345E27-7BB3-411B-B4D1-1572BBA4FC03@arcict.com>
We have set up a new test environment running PostgreSQL v12.2 on macOS
10.14 and the issue is still there.
One thing I noticed, is that the returning columns do not affect the
behaviour:
SELECT * FROM f_gsxws_schedule WHERE UPPER(gwsc_dossier) = 'TEST'
and
SELECT gwsc_sequence FROM f_gsxws_schedule WHERE UPPER(gwsc_dossier) =
'TEST'
both kill the postgres service.
I will try to free some time next week to install the Apple developer
tools and further analyse the problem.
Best regards,
Nick
On 11 Feb 2020, at 12:32, Nick Renders wrote:
> Hi Thomas,
>
> We are setting up a new test environment with 12.1.
> Once it is running, I'll try out those commands and get back with the
> results.
>
> Thanks,
>
> Nick Renders
>
>
> On 11 Feb 2020, at 2:51, Thomas Munro wrote:
>
>> On Mon, Feb 10, 2020 at 4:35 AM Marc <postgres@arcict.com> wrote:
>>> We will keep the 12.1 in place so that we can run additional tests
>>> to assist to pin-point the issue.
>>>
>>> Feel free to ask but allow us to recover from these hectic days ;-)
>>
>> Here's how to get a stack so we can see what it was doing, assuming
>> you have the Apple developer tools installed:
>>
>> 1. Find the PID of the backend you're connected to with SELECT
>> pg_backend_pid().
>> 2. "lldb -p PID" from a shell to attach to the process, then "cont"
>> to let it continue running.
>> 3. Run the query in that backend and wait for the SIGKILL.
>> 4. In the lldb session, type "bt".
>>
>> It'll only make sense if your PostgreSQL build has debug symbols, but
>> let's see.
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: postgres@arcict.com
Subject: Re: Postgres 12.1 : UPPER() in WHERE clause restarts server
In-Reply-To: <54EB66FD-6FDF-4B1B-9DCC-195112013AA9@arcict.com>
References: <CEF2C288-13E6-4727-81D0-0775F40F313B@arcict.com> <24448274-3B25-411F-8A9D-286E2EFDC65F@arcict.com> <CA+hUKGLT9NQrYrjuN8RaFb=Zim5wALCgFSvS4W0KKxBic0ik-w@mail.gmail.com> <A2345E27-7BB3-411B-B4D1-1572BBA4FC03@arcict.com> <54EB66FD-6FDF-4B1B-9DCC-195112013AA9@arcict.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