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 ACF2B9DC805 for ; Wed, 15 Feb 2006 17:29:54 -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 23385-07 for ; Wed, 15 Feb 2006 17:29:55 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from timberline.ca (unknown [66.244.194.163]) by postgresql.org (Postfix) with ESMTP id AE0F49DC803 for ; Wed, 15 Feb 2006 17:29:51 -0400 (AST) Received: from tfic21 ([172.16.10.21]) by timberline.ca (8.12.9/8.12.9) with ESMTP id k1FLTpiO008671 for ; Wed, 15 Feb 2006 13:29:51 -0800 (PST) Message-Id: <200602152129.k1FLTpiO008671@timberline.ca> From: "Jay Greenfield" To: Subject: Re: Postgres slower than MS ACCESS Date: Wed, 15 Feb 2006 13:29:51 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Thread-Index: AcYyO2oHDK0P9LqwQsCIzVv3ZfSeLwAKmD6g In-reply-to: <24B89C42-C597-4571-8BD1-A89073C3C035@torgo.978.org> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.09 required=5 tests=[AWL=0.090] X-Spam-Score: 0.09 X-Spam-Level: X-Archive-Number: 200602/219 X-Sequence-Number: 17205 I've been vacuuming between each test run. Not vacuuming results in times all the way up to 121 minutes. For a direct comparison with Access, the vacuuming time with Postgres should really be included as this is not required with Access. By removing all of the indexes I have been able to get the Postgres time down to 4.35 minutes with default setting for all except the following: fsync: off work_mem: 1024000 shared_buffers: 10000 I did a run with checkpoint_segments @ 30 (from 3 in 4.35 min run) and posted a time of 6.78 minutes. Any idea why this would increase the time? Thanks, Jay. -----Original Message----- From: pgsql-performance-owner@postgresql.org [mailto:pgsql-performance-owner@postgresql.org] On Behalf Of Jeff Trout Sent: Wednesday, February 15, 2006 6:23 AM To: Jay Greenfield Cc: 'Tom Lane'; 'Stephen Frost'; pgsql-performance@postgresql.org Subject: Re: [PERFORM] Postgres slower than MS ACCESS On Feb 14, 2006, at 3:56 PM, Jay Greenfield wrote: >> How do you get 4,000+ lines of explain analyze for one update >> query in a >> database with only one table? Something a bit fishy there. >> Perhaps you >> mean explain verbose, though I don't really see how that'd be so long >> either, but it'd be closer. Could you provide some more sane >> information? > > My mistake - there was 4,000 lines in the EXPLAIN ANALYZE VERBOSE > output. > Here is the output of EXPLAIN ANALYZE: > > QUERY PLAN > "Seq Scan on ntdn (cost=0.00..3471884.39 rows=1221391 width=1592) > (actual > time=57292.580..1531300.003 rows=1221391 loops=1)" > "Total runtime: 4472646.988 ms" > Have you been vacuuming or running autovacuum? If you keep running queries like this you're certianly going to have a ton of dead tuples, which would def explain these times too. -- Jeff Trout http://www.jefftrout.com/ http://www.stuarthamm.net/ ---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq