Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1ToL4v-0002ZR-Hq for pgsql-performance@arkaria.postgresql.org; Thu, 27 Dec 2012 21:33:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1ToL4u-0004Cu-RS for pgsql-performance@arkaria.postgresql.org; Thu, 27 Dec 2012 21:33:24 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1ToL4t-0004Co-JS for pgsql-performance@postgresql.org; Thu, 27 Dec 2012 21:33:23 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1ToL4s-0002An-Hm for pgsql-performance@postgresql.org; Thu, 27 Dec 2012 21:33:22 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id qBRLXLvp019937; Thu, 27 Dec 2012 16:33:21 -0500 (EST) From: Tom Lane To: Nikolas Everett cc: pgsql-performance@postgresql.org Subject: Re: explain analyze reports that my queries are fast but they run very slowly In-reply-to: References: <17229.1356636060@sss.pgh.pa.us> <17694.1356637368@sss.pgh.pa.us> Comments: In-reply-to Nikolas Everett message dated "Thu, 27 Dec 2012 15:00:22 -0500" Date: Thu, 27 Dec 2012 16:33:21 -0500 Message-ID: <19936.1356644001@sss.pgh.pa.us> X-Pg-Spam-Score: -1.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 Nikolas Everett writes: > We straced the backend during the explain and it looked like the open > commands were taking several seconds each. Kind of makes me wonder if you have a whole lot of tables ("whole lot" in this context probably means tens of thousands) and are storing the database on a filesystem that doesn't scale well to lots of files in one directory. If that's the explanation, the reason the 8.3 installation was okay was likely that it was stored on a more modern filesystem. BTW, please keep the list cc'd on replies. 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