Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 6A003632D51 for ; Mon, 9 Nov 2009 09:49:06 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 48344-08 for ; Mon, 9 Nov 2009 13:48:58 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-fx0-f227.google.com (mail-fx0-f227.google.com [209.85.220.227]) by mail.postgresql.org (Postfix) with ESMTP id 3FFE4632256 for ; Mon, 9 Nov 2009 09:48:57 -0400 (AST) Received: by fxm27 with SMTP id 27so1111169fxm.3 for ; Mon, 09 Nov 2009 05:48:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=RI9+g02L1LBXUYEECSXw37rJg35+ajFsrA3HgyMS+DA=; b=UwG4FCrFYYmr9Tfv2XHJTUjk70h6swKnREyeb9C+zH+x/63e2X9TODPqKBKFDoWYUP bBjakSAQDfjQmX0l2n1HGP4a+k55jltkhJUmhy9B43gud9v5f4RBlVFOPzRYb5h4Qx4V b7al/SIf4uRsVyFwSd54acR/GQ1M1KQfWAF08= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Rete/S7tlxdvUYWB5r9AlXLzcadXXYCOrmsfp/yurKH/2OOutpYr/eoLk/7ly3gi91 lbRCUP5itFzIknf2fLYWNUxvt0h5AgiiC6FXZKo6x3N/hKGxXHbTGDoWkaLShQetCula yHwjeultEiM747VNmpZyQ8e4qWt74d+c1KbeE= MIME-Version: 1.0 Received: by 10.239.190.227 with SMTP id y35mr765038hbh.212.1257774535708; Mon, 09 Nov 2009 05:48:55 -0800 (PST) In-Reply-To: <4AF81207.4050008@shopzeus.com> References: <4AF81207.4050008@shopzeus.com> Date: Mon, 9 Nov 2009 08:48:55 -0500 Message-ID: <603c8f070911090548g40d42a1erdbe262c545612739@mail.gmail.com> Subject: Re: random_page_cost for tablespace From: Robert Haas To: Laszlo Nagy Cc: pgsql-performance Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200911/89 X-Sequence-Number: 36257 2009/11/9 Laszlo Nagy : > We have a bigger table with some million rows. Number of index scans is > high, number of seq reads is low. This table if often joined with > others... so we want to buy a new SSD drive, create a tablespace on it > and put this big table on it. Random read speed on SSD is identical to > seq read. However, I need to tell the optimizer that random_page_cost is > less for the new tablespace. Is there a way to do it? I happen to be working on a patch for this exact feature. However, even assuming it gets in, that means waiting for 8.5. ...Robert