Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bJNSO-0000RV-3A for pgsql-hackers@arkaria.postgresql.org; Sat, 02 Jul 2016 16:07:48 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bJNSN-0005ri-LY for pgsql-hackers@arkaria.postgresql.org; Sat, 02 Jul 2016 16:07:47 +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 1bJNSN-0005rT-5F for pgsql-hackers@postgresql.org; Sat, 02 Jul 2016 16:07:47 +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.84_2) (envelope-from ) id 1bJNSJ-0004b6-IX for pgsql-hackers@postgresql.org; Sat, 02 Jul 2016 16:07:46 +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 u62G7ebo016437; Sat, 2 Jul 2016 12:07:40 -0400 From: Tom Lane To: Stefan Huehner cc: pgsql-hackers@postgresql.org Subject: Re: 9.6beta2: query failure with 'cache lookup failed for type 0' In-reply-to: <20160702160042.GA11659@huehner.biz> References: <20160702131056.GD3165@huehner.biz> <32030.1467473752@sss.pgh.pa.us> <20160702160042.GA11659@huehner.biz> Comments: In-reply-to Stefan Huehner message dated "Sat, 02 Jul 2016 16:00:42 -0000" Date: Sat, 02 Jul 2016 12:07:40 -0400 Message-ID: <16436.1467475660@sss.pgh.pa.us> X-Pg-Spam-Score: -3.2 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Stefan Huehner writes: > On Sat, Jul 02, 2016 at 11:35:52AM -0400, Tom Lane wrote: >> Hmm, I can't reproduce this on HEAD, but it doesn't seem to look like >> anything we've fixed post-beta2. Do you need to put any particular data >> into the tables? Are you running with any nondefault configuration >> parameters? > No data at all needed in table. Ah, I found it: need to ANALYZE the tables. Then I get TRAP: FailedAssertion("!(((bool) ((aggtranstype) != ((Oid) 0))))", File: "nodeAgg.c", Line: 2698) Looks like planner is somehow forgetting to assign aggtranstype for the aggregate. Will trace it down, thanks for the report! regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers