Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cFUxB-0002UH-Hj for pgsql-performance@arkaria.postgresql.org; Fri, 09 Dec 2016 23:51:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cFUxA-000530-Ra for pgsql-performance@arkaria.postgresql.org; Fri, 09 Dec 2016 23:51:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cFUxA-00052o-8Y for pgsql-performance@postgresql.org; Fri, 09 Dec 2016 23:51:48 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cFUx6-00047V-Ft for pgsql-performance@postgresql.org; Fri, 09 Dec 2016 23:51:47 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id uB9Npf0x005354; Fri, 9 Dec 2016 18:51:41 -0500 From: Tom Lane To: Eric Jiang cc: pgsql-performance@postgresql.org, Eric Clark Subject: Re: Querying with multicolumn index In-reply-to: References: Comments: In-reply-to Eric Jiang message dated "Fri, 09 Dec 2016 09:00:16 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <5352.1481327501.1@sss.pgh.pa.us> Date: Fri, 09 Dec 2016 18:51:41 -0500 Message-ID: <5353.1481327501@sss.pgh.pa.us> X-Pg-Spam-Score: -4.9 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org Eric Jiang writes: > I have a query that I *think* should use a multicolumn index, but > sometimes isn't, resulting in slow queries. I tried to duplicate this behavior, without success. Are you running with nondefault planner parameters? regards, tom lane -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance