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.89) (envelope-from ) id 1j0WXE-0003go-7q for pgsql-general@arkaria.postgresql.org; Sat, 08 Feb 2020 20:17:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j0WXC-0003yA-Uy for pgsql-general@arkaria.postgresql.org; Sat, 08 Feb 2020 20:16:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j0WXB-0003t7-B8 for pgsql-general@lists.postgresql.org; Sat, 08 Feb 2020 20:16:58 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j0WX6-0005Tm-PC for pgsql-general@postgresql.org; Sat, 08 Feb 2020 20:16:56 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id EA07B21C47; Sat, 8 Feb 2020 15:16:49 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sat, 08 Feb 2020 15:16:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=i IPWB5dmGDRP24MAGXcxz5vNOtHX5WnqXEqOVnaQtKw=; b=wW71jt/7rYq0sXp0f qe36Cd1v+8f8H9Fyp54pQV5DPlPiN7YOtJmXxkB7neaOyPeV4bTjPYrGOdnRv3cr ak3xmus+vxYImmzVL+jRA0o+rF1s6MVnx6NjmEX1o1x+L7dWdYpqpKQPGLRi2JHs FbixPirCx0hrxq3dTrU2R42ChTWBg6QUOJ4Hf8pmnYK2FP9b4KE5r6S2JBBBibDZ 8wpbLhRUb6erBZ8Wsz99n6PdbBNNJrOlueuOjvBAGtTJ40YdMGIVpJIzeSr7MzDV eUrYMlhbCoE2gVg5EMTyOp6DUbEYLBI7luapwe5dxdfOWNI+TXAIyfs4LGhOpNkG qkzBw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=iIPWB5dmGDRP24MAGXcxz5vNOtHX5WnqXEqOVnaQt Kw=; b=YaJBNQ9HJxHmFktMylgNW+pQF1Gg4o3gyl4b0bns3XQ9on7kPP1jLy+qf W5MdUyfGmY5G15SeNBE30wnJTnmi+59KZD0fEt0UwldV67ks0KND5oCM5Aa8FHHJ RSaH9ZdL3jOYYH7YyMawqEAidqOMeIPKh0nGWppDiJHCq8LbTDBBO6vrZSdAfjc0 AMzXhiPSY4xPqpPuBVigVUSKCvR6Gme3batj100SM5lgJkxlFxgXTrcaDaNc/N29 aDRf0DHM3EEZ5TIRVCXtsCo90toaaOS386Jeeyae8K13pfhw1Y6f1pFkzZyArdzX o3el+hUDhbXkGkIeU+NQM1aCDvJaw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrheejgddufeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtke ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecukfhppeejuddrvdduvddruddvledrud elfeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegr ughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: from [192.168.1.10] (unknown [71.212.129.193]) by mail.messagingengine.com (Postfix) with ESMTPA id 2D2C230606E9; Sat, 8 Feb 2020 15:16:49 -0500 (EST) Subject: Re: Postgres 12.1 : UPPER() in WHERE clause restarts server To: Nick Renders , pgsql-general References: From: Adrian Klaver Message-ID: <7f962c6c-936e-d023-cac9-b52edd663c14@aklaver.com> Date: Sat, 8 Feb 2020 12:16:48 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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