Re: 9.6beta2: query failure with 'cache lookup failed for type 0'

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Stefan Huehner <stefan(at)huehner(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: 9.6beta2: query failure with 'cache lookup failed for type 0'
Date: 2016-07-02 16:07:40
Message-ID: 16436.1467475660@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Stefan Huehner <stefan(at)huehner(dot)org> 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message CharSyam 2016-07-02 16:17:40 Typo Patch
Previous Message Christoph Berg 2016-07-02 16:04:44 Re: 9.6beta2: query failure with 'cache lookup failed for type 0'