Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VkHOi-0002SK-UY for pgsql-bugs@arkaria.postgresql.org; Sat, 23 Nov 2013 17:53:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VkHOi-0003MY-AC for pgsql-bugs@arkaria.postgresql.org; Sat, 23 Nov 2013 17:53:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VkHOg-0003MP-AG for pgsql-bugs@postgresql.org; Sat, 23 Nov 2013 17:53:34 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VkHOZ-0002Qg-Fw for pgsql-bugs@postgresql.org; Sat, 23 Nov 2013 17:53:34 +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 rANHrOCD016770; Sat, 23 Nov 2013 12:53:24 -0500 From: Tom Lane To: jesse.denardo@myfarms.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #8620: SELECT on Materialized View Fails to Use Index In-reply-to: References: Comments: In-reply-to jesse.denardo@myfarms.com message dated "Sat, 23 Nov 2013 14:19:55 +0000" Date: Sat, 23 Nov 2013 12:53:24 -0500 Message-ID: <16769.1385229204@sss.pgh.pa.us> X-Pg-Spam-Score: -2.5 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org jesse.denardo@myfarms.com writes: > Any idea why Postgres would fail to use the > index on one machine but not the other, for identical queries? The rowcount estimates are far from identical. Maybe you've ANALYZEd the matview on one machine and not the other? Could you have auto-analyze disabled on the second machine? regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs