Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZbWjB-0004XN-WC for pgsql-bugs@arkaria.postgresql.org; Mon, 14 Sep 2015 16:35:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZbWjB-00040r-Hy for pgsql-bugs@arkaria.postgresql.org; Mon, 14 Sep 2015 16:35:37 +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.84) (envelope-from ) id 1ZbQmv-0000Wr-2W for pgsql-bugs@postgresql.org; Mon, 14 Sep 2015 10:15:05 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZbQms-0003sU-EV for pgsql-bugs@postgresql.org; Mon, 14 Sep 2015 10:15:04 +0000 MIME-Version: 1.0 Subject: BUG #13619: regression functions return Null To: pgsql-bugs@postgresql.org From: biswadeep.banerjee@actifio.com Date: Mon, 14 Sep 2015 10:14:03 +0000 Message-ID: <20150914101403.2675.58889@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.2 (-) Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 13619 Logged by: Biswadeep Banerjee Email address: biswadeep.banerjee@actifio.com PostgreSQL version: 9.4.4 Operating system: Any Description: Hi, Trending analysis is one of our use case, where I am trying the use the regression function in postgres 9.4.4. eg. regr_slope(y,x); regr_intercept(y,x). I have tried to use the functions to fit in our trending analysis SQL but returns NULL. As test also tried with constant values, like, select regr_slope(4,3), regr_intercept(4,3) from table; --- returns NULL. Is this a known issue? or I am using the function differently. Thanks -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs