Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1j6D9t-0008N1-Cc for pgsql-general@arkaria.postgresql.org; Mon, 24 Feb 2020 12:48:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j6D9s-0002gs-8d for pgsql-general@arkaria.postgresql.org; Mon, 24 Feb 2020 12:48:24 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j6D9r-0002bu-R2 for pgsql-general@lists.postgresql.org; Mon, 24 Feb 2020 12:48:23 +0000 Received: from mail.arcict.com ([91.183.106.63] helo=arcict.com) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1j6D9p-0008Ry-4N for pgsql-general@postgresql.org; Mon, 24 Feb 2020 12:48:22 +0000 Received: from [192.163.1.153] ([192.163.1.153] verified) by arcict.com (CommuniGate Pro SMTP 6.2.15) with ESMTP id 4550307 for pgsql-general@postgresql.org; Mon, 24 Feb 2020 13:48:18 +0100 From: "Nick Renders" To: pgsql-general Subject: Re: Postgres 12.1 : UPPER() in WHERE clause restarts server Date: Mon, 24 Feb 2020 13:48:18 +0100 X-Mailer: MailMate (1.13.1r5676) Message-ID: <54EB66FD-6FDF-4B1B-9DCC-195112013AA9@arcict.com> In-Reply-To: References: <24448274-3B25-411F-8A9D-286E2EFDC65F@arcict.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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 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.