X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 8C78E52897 for ; Thu, 19 May 2005 14:16:26 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 13629-04 for ; Thu, 19 May 2005 17:16:13 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 3A9DC5288C for ; Thu, 19 May 2005 14:16:12 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j4JHGLF7005515; Thu, 19 May 2005 13:16:21 -0400 (EDT) To: Josh Berkus Cc: "Jim C. Nasby" , pgsql-performance@postgresql.org Subject: Re: Tuning planner cost estimates In-reply-to: <200505190931.47662.josh@agliodbs.com> References: <20050518002236.GU30902@decibel.org> <200505190931.47662.josh@agliodbs.com> Comments: In-reply-to Josh Berkus message dated "Thu, 19 May 2005 09:31:47 -0700" Date: Thu, 19 May 2005 13:16:21 -0400 Message-ID: <5514.1116522981@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200505/318 X-Sequence-Number: 12482 Josh Berkus writes: > I think a first step would be, in fact, to develop a tool that allows us to > put EXPLAIN ANALYZE results in a database table. Without that, there is no > possibility of statistical-scale analysis. AFAIK you can do that today using, eg, plpgsql: for rec in explain analyze ... loop insert into table values(rec."QUERY PLAN"); end loop; regards, tom lane