Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1etFGz-0001aC-3X for pgsql-general@arkaria.postgresql.org; Tue, 06 Mar 2018 16:17:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1etFGy-00004z-2U for pgsql-general@arkaria.postgresql.org; Tue, 06 Mar 2018 16:17:04 +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_SHA384:256) (Exim 4.89) (envelope-from ) id 1etFGx-0008WH-Q9 for pgsql-general@lists.postgresql.org; Tue, 06 Mar 2018 16:17:03 +0000 Received: from host3.dynacom.ondsl.gr ([62.103.35.211] helo=smadev.internal.net) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1etFGu-0004Ci-Eh for pgsql-general@lists.postgresql.org; Tue, 06 Mar 2018 16:17:03 +0000 Received: from smadev.internal.net (smadev [10.9.200.131]) by smadev.internal.net (8.15.2/8.15.2) with ESMTP id w26GGueC054870 for ; Tue, 6 Mar 2018 18:16:56 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) Subject: Re: normalizing a float array? To: pgsql-general@lists.postgresql.org References: From: Achilleas Mantzios Message-ID: <9cedee60-71e1-5174-bf4e-14ef45b74941@matrix.gatewaynet.com> Date: Tue, 6 Mar 2018 18:16:56 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 06/03/2018 18:12, Celia McInnis wrote: > Hi - I can write a stored procedure to normalize float arrays, but is there a nicer way of doing this in postgresql? Last time I checked (1-2 yrs ago) no. -- Achilleas Mantzios IT DEV Lead IT DEPT Dynacom Tankers Mgmt