X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id DEC81D1BA6C for ; Fri, 5 Sep 2003 01:25:07 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 70889-10 for ; Thu, 4 Sep 2003 22:25:00 -0300 (ADT) Received: from news.hub.org (unknown [64.117.224.194]) by svr1.postgresql.org (Postfix) with ESMTP id 3FA4AD1B9BC for ; Thu, 4 Sep 2003 22:24:57 -0300 (ADT) Received: from news.hub.org (host-64-117-224-194.altec1.com [64.117.224.194] (may be forged)) by news.hub.org (8.12.9/8.12.9) with ESMTP id h851OvDh040893 for ; Fri, 5 Sep 2003 01:24:57 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id h851KjE8040164 for pgsql-performance@postgresql.org; Fri, 5 Sep 2003 01:20:45 GMT From: "Relaxin" X-Newsgroups: comp.databases.postgresql.performance Subject: Re: SELECT's take a long time compared to other DBMS Date: Thu, 4 Sep 2003 17:45:20 -0700 Organization: Hub.Org Networking Services Lines: 42 Message-ID: References: X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 To: pgsql-performance@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/83 X-Sequence-Number: 3449 I reset the shared_buffers to 1000 from 128, but it made no difference. ""scott.marlowe"" wrote in message news:Pine.LNX.4.33.0309041625300.28714-100000@css120.ihs.com... > On Wed, 3 Sep 2003, Relaxin wrote: > > > I have a table with 102,384 records in it, each record is 934 bytes. > > > > Using the follow select statement: > > SELECT * from > > > > PG Info: version 7.3.4 under cygwin on Windows 2000 > > ODBC: version 7.3.100 > > > > Machine: 500 Mhz/ 512MB RAM / IDE HDD > > > > > > Under PG: Data is returned in 26 secs!! > > Under SQL Server: Data is returned in 5 secs. > > Under SQLBase: Data is returned in 6 secs. > > Under SAPDB: Data is returned in 7 secs. > > This is typical of postgresql under cygwin, it's much faster under a Unix > OS like Linux or BSD. That said, you CAN do some things to help speed it > up, the biggest being tuning the shared_buffers to be something large > enough to hold a fair bit of data. Set the shared_buffers to 1000, > restart, and see if things get better. > > Running Postgresql in a unix emulation layer is guaranteed to make it > slow. If you've got a spare P100 with 128 Meg of RAM you can throw redhat > 9 or FreeBSD 4.7 on and run Postgresql on, it will likely outrun your > 500MHZ cygwin box, and might even keep up with the other databases on that > machine as well. > > > ---------------------------(end of broadcast)--------------------------- > TIP 5: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faqs/FAQ.html >