Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 63B642E014B for ; Mon, 9 Jun 2008 21:48:45 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 00884-01 for ; Mon, 9 Jun 2008 21:48:22 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by developer.postgresql.org (Postfix) with ESMTP id E01832E0157 for ; Mon, 9 Jun 2008 21:17:26 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id m5A0HOH5002323; Mon, 9 Jun 2008 20:17:24 -0400 (EDT) To: "John Smith" cc: pgsql-performance@postgresql.org Subject: Re: Performance of aggregates over set-returning functions In-reply-to: References: <25214.1199848043@sss.pgh.pa.us> <25822.1199850664@sss.pgh.pa.us> Comments: In-reply-to "John Smith" message dated "Mon, 09 Jun 2008 15:57:52 -0700" Date: Mon, 09 Jun 2008 20:17:24 -0400 Message-ID: <2322.1213057044@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200806/43 X-Sequence-Number: 30393 "John Smith" writes: > Sorry for the long delay in following up on this suggestion. The > change Tom suggested fixed the performance problems I was seeing, but > I never ran the full regression suite on the modified code, as > everything in my performance tests seemed to indicate the bug was > fixed (i.e, no errors even with --cassert-enabled). When I recently > ran the regression suite on the "fixed" version of Postgres, the > "misc" test suite fails with the following error message: "ERROR: > cache lookup failed for type 2139062143". Is this a manifestation of > the problem where certain items are being freed too early? Yup --- something's trying to use memory that's already been freed. The particular case is evidently a field containing a type OID. You might be able to get a clue where the problem is by getting a gdb stack trace back from errfinish(), but this sort of kills my optimism that the 7.0-era problem is gone ... regards, tom lane