Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id DCB3CB5DC07 for ; Wed, 14 Sep 2011 11:02:23 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 72037-04 for ; Wed, 14 Sep 2011 14:02:17 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mail.postgresql.org (Postfix) with ESMTP id CAD28B5DBE0 for ; Wed, 14 Sep 2011 11:02:16 -0300 (ADT) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1R3q2a-0005Tr-7d for pgsql-performance@postgresql.org; Wed, 14 Sep 2011 07:02:16 -0700 Date: Wed, 14 Sep 2011 07:02:16 -0700 (PDT) From: MirrorX To: pgsql-performance@postgresql.org Message-ID: <1316008936230-4802871.post@n5.nabble.com> In-Reply-To: References: <1316004607207-4802634.post@n5.nabble.com> <1316005753084-4802699.post@n5.nabble.com> Subject: Re: cannot use multicolumn index MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.233 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, SARE_RAND_1=2, T_TO_NO_BRKTS_FREEMAIL=0.01, URI_HEX=1.122 X-Spam-Level: * X-Archive-Number: 201109/213 X-Sequence-Number: 44989 -postgres version -> 8.4.4 -os -> redhat 5.6 -specs ->24 cores, 96GB ram, shared_buffers=32 GB -postgresql.conf -> i havent made any changes as far as the query tuning parameters are concerned. #------------------------------------------------------------------------------ # QUERY TUNING #------------------------------------------------------------------------------ # - Planner Method Configuration - #enable_bitmapscan = on #enable_hashagg = on #enable_hashjoin = on #enable_indexscan = on #enable_mergejoin = on #enable_nestloop = on #enable_seqscan = on #enable_sort = on #enable_tidscan = on # - Planner Cost Constants - #seq_page_cost = 1.0 # measured on an arbitrary scale #random_page_cost = 4.0 # same scale as above #cpu_tuple_cost = 0.01 # same scale as above #cpu_index_tuple_cost = 0.005 # same scale as above #cpu_operator_cost = 0.0025 # same scale as above effective_cache_size = 50GB # - Genetic Query Optimizer - #geqo = on #geqo_threshold = 12 #geqo_effort = 5 # range 1-10 #geqo_pool_size = 0 # selects default based on effort #geqo_generations = 0 # selects default based on effort #geqo_selection_bias = 2.0 # range 1.5-2.0 # - Other Planner Options - #default_statistics_target = 100 # range 1-10000 #constraint_exclusion = partition # on, off, or partition #cursor_tuple_fraction = 0.1 # range 0.0-1.0 #from_collapse_limit = 8 #join_collapse_limit = 8 # 1 disables collapsing of explicit # JOIN clauses -------------------------------------------------------------------------------------------------------------- if any other parameters are relative to my question pls tell me which you want and i can post them (i can post the whole postgresql.conf if it's helpful). my shared buffers ar my question apart from the specific example, is a little more general. so, is it normal to expect such an index to be used? can i write the query in another form so as to use this index? is it for example that the conditions are '>' and not '=' a factor why the index is not used? -- View this message in context: http://postgresql.1045698.n5.nabble.com/cannot-use-multicolumn-index-tp4802634p4802871.html Sent from the PostgreSQL - performance mailing list archive at Nabble.com.