Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id E96B21337B49 for ; Thu, 18 Nov 2010 17:00:19 -0400 (AST) 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 14256-10 for ; Thu, 18 Nov 2010 21:00:12 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id 4DF611335B36 for ; Thu, 18 Nov 2010 17:00:11 -0400 (AST) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Thu, 18 Nov 2010 15:00:11 -0600 Message-Id: <4CE53F770200002500037ADD@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Thu, 18 Nov 2010 15:00:07 -0600 From: "Kevin Grittner" To: "Humair Mohammed" Cc: ,, "Tom Lane" Subject: Re: Query Performance SQL Server vs. Postgresql References: , , <26558.1290036078@sss.pgh.pa.us> In-Reply-To: <26558.1290036078@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-4.21 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201011/316 X-Sequence-Number: 41340 Tom Lane wrote: > I have no idea how much memory SQL Server thinks it can use Hmmm... That triggered an old memory -- when we were running SQL Server on Windows there was some registry setting which we tweaked to prevent the OS from trying to cache disk I/O. (Sorry I don't remember the name of it.) That helped SQL Server perform better, but would cripple PostgreSQL -- it counts on OS caching. Of course, once we found that PostgreSQL was 70% faster on identical hardware with identical load, and switching the OS to Linux brought it to twice as fast, I haven't had to worry about SQL Server or Windows configurations. ;-) Don't panic if PostgreSQL seems slower at first, it's probably a configuration or maintenance schedule issue that can be sorted out. Besides the specific advice Tom gave you, you might want to browse this page for configuration in general: http://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server And if you continue to experience performance issues, this page can help you get to a resolution quickly: http://wiki.postgresql.org/wiki/SlowQueryQuestions We've been very happy with the switch to PostgreSQL. We've had better performance, better reliability, less staff time needed to babysit backups, and we've been gradually using more of the advance features not available in other products. It's well worth the effort to get over those initial bumps resulting from product differences. -Kevin