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 1ej8mW-0006b9-Fk for pgsql-bugs@arkaria.postgresql.org; Tue, 06 Feb 2018 19:19:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ej8mU-0006ra-IM for pgsql-bugs@arkaria.postgresql.org; Tue, 06 Feb 2018 19:19:50 +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_2) (envelope-from ) id 1ej8mU-0006rR-CZ for pgsql-bugs@lists.postgresql.org; Tue, 06 Feb 2018 19:19:50 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ej8mN-0001rA-Mm for pgsql-bugs@lists.postgresql.org; Tue, 06 Feb 2018 19:19:49 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w16JJepL023670; Tue, 6 Feb 2018 14:19:40 -0500 From: Tom Lane To: obeltrame@callixbrasil.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15053: SIGSEGV - While executing query with cube agregator In-reply-to: <151793838713.1243.5246278119990227987@wrigleys.postgresql.org> References: <151793838713.1243.5246278119990227987@wrigleys.postgresql.org> Comments: In-reply-to =?utf-8?q?PG_Bug_reporting_form?= message dated "Tue, 06 Feb 2018 17:33:07 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <23668.1517944780.1@sss.pgh.pa.us> Date: Tue, 06 Feb 2018 14:19:40 -0500 Message-ID: <23669.1517944780@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk =?utf-8?q?PG_Bug_reporting_form?= writes: > the following postgres crash was generated during the execution of this > query: > select > freeswitch_bug_events.created_at::date, > freeswitch_nodes."name", > tenants."name", > count(*) filter(where freeswitch_bug_events.event = 'call received'), > count(*) filter(where freeswitch_bug_events.event = 'status changed') > from dev.freeswitch_bug_events > join public.tenants on freeswitch_bug_events.tenant = tenants.id > join public.freeswitch_nodes on freeswitch_bug_events.node = > freeswitch_nodes.id > group by > cube (freeswitch_bug_events.created_at::date, freeswitch_nodes."name", > tenants."name" ) Hmm, well, first please update to something newer than 9.6.3, to see if the problem is already resolved. (9.6.7 is being released this week.) If not, please see if you can extract a self-contained test case. That stack trace is not really enough information to fix it. regards, tom lane