X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 0AE399FA147 for ; Thu, 6 Jul 2006 11:28:58 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 19100-07 for ; Thu, 6 Jul 2006 11:28:46 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from exchange.g2switchworks.com (mail.g2switchworks.com [63.87.162.25]) by postgresql.org (Postfix) with ESMTP id CC97D9FA0EC for ; Thu, 6 Jul 2006 11:28:45 -0300 (ADT) Received: from 10.10.1.37 ([10.10.1.37]) by exchange.g2switchworks.com ([10.10.1.2]) with Microsoft Exchange Server HTTP-DAV ; Thu, 6 Jul 2006 14:28:39 +0000 Received: from state.g2switchworks.com by mail.g2switchworks.com; 06 Jul 2006 09:28:39 -0500 Subject: Re: getting better performance From: Scott Marlowe To: Eugeny N Dzhurinsky Cc: pgsql-performance@postgresql.org In-Reply-To: <20060706064016.GC1091@office.redwerk.com> References: <20060706064016.GC1091@office.redwerk.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1152196118.13851.110.camel@state.g2switchworks.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Thu, 06 Jul 2006 09:28:39 -0500 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200607/43 X-Sequence-Number: 19903 On Thu, 2006-07-06 at 01:40, Eugeny N Dzhurinsky wrote: > Hello! > > I have a postgresql server serving thousands of tables. Sometime there are > queries which involves several tables. Do you add / remove tables a lot? Could be you've got system catalog bloat. do you have autovacuum running? What version of pgsql are you running? What OS? What file system? What kind of machine are you using? How much memory does it have? How many disk drives? Are you using RAID? hardware / software? battery backed cache or no? Do you have one or two, or thousands of connections at a time? Do you use connection pooling if you have lots of connections to handle? There's a lot of info needed to make a decision on how to performance tune a system.