X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id DF2B311F6286 for ; Wed, 29 Mar 2006 02:58:18 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 41154-03 for ; Wed, 29 Mar 2006 02:58:17 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.rentalia.net (mail.rentalia.com [213.192.209.8]) by postgresql.org (Postfix) with ESMTP id CD2C811F6258 for ; Wed, 29 Mar 2006 02:58:15 -0400 (AST) Received: (qmail 16823 invoked by uid 514); 29 Mar 2006 10:00:24 +0200 Received: from 62.37.217.225 by rigodon (envelope-from , uid 512) with qmail-scanner-1.25-st-qms (clamdscan: 0.88/1284. spamassassin: 3.0.2. perlscan: 1.25-st-qms. Clear:RC:0(62.37.217.225):SA:0(-1.8/5.0):. Processed in 0.630708 secs); 29 Mar 2006 08:00:24 -0000 X-Antivirus-MYDOMAIN-Mail-From: ruben@rentalia.com via rigodon X-Antivirus-MYDOMAIN: 1.25-st-qms (Clear:RC:0(62.37.217.225):SA:0(-1.8/5.0):. Processed in 0.630708 secs Process 16805) Received: from 62-37-217-225.mad1.adsl.uni2.es (HELO ?192.168.2.28?) (ruben@rentalia.com@62.37.217.225) by mail.rentalia.net with SMTP; 29 Mar 2006 10:00:23 +0200 Message-ID: <442A2FFF.1080301@rentalia.com> Date: Wed, 29 Mar 2006 08:58:07 +0200 From: Ruben Rubio Rey User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051011) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: Slow performance on Windows .NET and OleDb References: <000d01c65261$19a3fa40$0200a8c0@pta.homex.co.za> <20060328173213.GO75181@pervasive.com> <442977D7.5060508@commandprompt.com> <006c01c652f9$1ca9c420$0200a8c0@pta.homex.co.za> In-Reply-To: <006c01c652f9$1ca9c420$0200a8c0@pta.homex.co.za> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.113 required=5 tests=[AWL=0.113] X-Spam-Score: 0.113 X-Spam-Level: X-Archive-Number: 200603/575 X-Sequence-Number: 18012 Greg Quinn wrote: > The query is, > > select * from users > > which returns 4 varchar fields, there is no where clause > > Yes, I am running the default postgres config. Basically I have been a > MySQL user and thought I would like to check out PostGreSql. So I did > a quick performance test. The performance was so different that I > thought PostGreSQL was nothing compared to MySQL, but now it seems its > just a few configuration options. Strange how the defult config would > be so slow... My english is poor but im gonna try to explain it: Default configuration in postgres its not for good performance, its just design to make it working in any computer. Thats why u have to try to custom default config file. Anyway, people says that mysql is faster (and lighter) than postgres (at least with mysql 3.x vs postgres 7.4), but postgres is more advanced and its much harder to get data corrupted. But there is something that you should known about postgres. Postgres creates statistics of usage, and when you "vacumm", it optimizes each table depending of usage. So: - You should custom config file. - You should vacumm it, as someone recomended before. - Do u have any indexes? Remove it. To get all rows you do not need it Note that I just have use it under Linux, i have no idea about how should it work on Windows.