From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Humair Mohammed <humairm@hotmail.com>
Cc: pavel.stehule@gmail.com
Cc: pgsql-performance@postgresql.org
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Subject: Re: Query Performance SQL Server vs. Postgresql
Date: Thu, 18 Nov 2010 15:00:07 -0600
Message-ID: <4CE53F770200002500037ADD@gw.wicourts.gov> (raw)
In-Reply-To: <26558.1290036078@sss.pgh.pa.us>
References: <COL115-W5250BF8BDC50E0A64DABE4A8360@phx.gbl>
<AANLkTin+MPhrYUzkCZjdAMLhF3KKZCCuvDm0=Npf9jz7@mail.gmail.com>
<COL115-W3987D9D7DE908C5C47792DA8380@phx.gbl>
<AANLkTi=yFV69yNZpHzKiZRtZ0X0PtKcpOrMNNkAo+Si6@mail.gmail.com>
<COL115-W186A7B93051E6907958ED6A8380@phx.gbl>
<COL115-W186A7B93051E6907958ED6A8380@phx.gbl>
<26558.1290036078@sss.pgh.pa.us>
Tom Lane <tgl@sss.pgh.pa.us> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: Kevin.Grittner@wicourts.gov, humairm@hotmail.com, pavel.stehule@gmail.com, tgl@sss.pgh.pa.us
Subject: Re: Query Performance SQL Server vs. Postgresql
In-Reply-To: <4CE53F770200002500037ADD@gw.wicourts.gov>
References: <COL115-W5250BF8BDC50E0A64DABE4A8360@phx.gbl> <AANLkTin+MPhrYUzkCZjdAMLhF3KKZCCuvDm0=Npf9jz7@mail.gmail.com> <COL115-W3987D9D7DE908C5C47792DA8380@phx.gbl> <AANLkTi=yFV69yNZpHzKiZRtZ0X0PtKcpOrMNNkAo+Si6@mail.gmail.com> <COL115-W186A7B93051E6907958ED6A8380@phx.gbl> <26558.1290036078@sss.pgh.pa.us> <4CE53F770200002500037ADD@gw.wicourts.gov>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox