X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 8AA949FA5E1 for ; Fri, 2 Jun 2006 06:24:59 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 87814-05 for ; Fri, 2 Jun 2006 06:24:52 -0300 (ADT) X-Greylist: delayed 00:23:03.841454 by SQLgrey- Received: from pqueuea.post.tele.dk (pqueuea.post.tele.dk [193.162.153.9]) by postgresql.org (Postfix) with ESMTP id 603AD9FA111 for ; Fri, 2 Jun 2006 06:24:52 -0300 (ADT) Received: from pfepb.post.tele.dk (pfepb.post.tele.dk [195.41.46.236]) by pqueuea.post.tele.dk (Postfix) with ESMTP id 82BB8376285 for ; Fri, 2 Jun 2006 11:01:46 +0200 (CEST) Received: from [128.0.7.230] (0x535b8898.taanxx1.adsl-dhcp.tele.dk [83.91.136.152]) by pfepb.post.tele.dk (Postfix) with ESMTP id 143C1A50050; Fri, 2 Jun 2006 11:01:34 +0200 (CEST) From: Nicolai Petri Organization: catpipe Systems ApS To: pgsql-hackers@postgresql.org Subject: Re: More thoughts about planner's cost estimates Date: Fri, 2 Jun 2006 11:01:30 +0200 User-Agent: KMail/1.9.1 Cc: Josh Berkus , Tom Lane References: <14821.1149104747@sss.pgh.pa.us> <447F23A9.1090503@agliodbs.com> In-Reply-To: <447F23A9.1090503@agliodbs.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606021101.31487.nicolai@catpipe.net> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/43 X-Sequence-Number: 84276 Hi All, Just a small comment from a mortal user. On Thursday 01 June 2006 19:28, Josh Berkus wrote: > 5. random_page_cost (as previously discussed) is actually a funciton of > relatively immutable hardware statistics, and as such should not need to > exist as a GUC once the cost model is fixed. It's correct that the hardware statistics are quite immutable - per tablespace. This suggests to me that the GUC should be default value only and then overridable per tablespace. It's quite normal to have primary (current data) and secondary (historical data) storage for larger databases. This can also fit nicely into the pg_tmp storage if tie support for multiple tmp folders together with tablespaces. > > 6. We haven't added any way to estimate rows returned from SRFs. This would also be very cool - currently the planner can really get annoyed when joining SRF functions with tables. --- Nicolai