Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 46649634863 for ; Tue, 10 Mar 2009 14:50:12 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 10790-06 for ; Tue, 10 Mar 2009 14:50:09 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from westnet.com (westnet.com [216.187.52.2]) by mail.postgresql.org (Postfix) with ESMTP id 2AE9E633744 for ; Tue, 10 Mar 2009 14:50:07 -0300 (ADT) Received: from westnet.com (localhost [127.0.0.1]) by westnet.com (8.14.0/8.14.0) with ESMTP id n2AHo5lm020941; Tue, 10 Mar 2009 13:50:05 -0400 (EDT) Received: from localhost (gsmith@localhost) by westnet.com (8.14.0/8.13.2/Submit) with ESMTP id n2AHo5NC020938; Tue, 10 Mar 2009 13:50:05 -0400 (EDT) X-Authentication-Warning: westnet.com: gsmith owned process doing -bs Date: Tue, 10 Mar 2009 13:50:05 -0400 (EDT) From: Greg Smith X-X-Sender: gsmith@westnet.com To: henk de wit cc: pgsql-performance@postgresql.org Subject: Re: When does sequential performance matter in PG? In-Reply-To: Message-ID: References: User-Agent: Alpine 2.01 (GSO 1184 2008-12-16) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200903/82 X-Sequence-Number: 33004 On Tue, 10 Mar 2009, henk de wit wrote: > Now I wonder if there is any situation in which sequential IO > performance comes into play. E.g. perhaps during a tablescan on a > non-fragmented table, or during a backup or restore? If you're doing a sequential scan of data that was loaded in a fairly large batch, you can approach reading at the sequential I/O rate of the drives. Doing a backup using pg_dump is one situation where you might actually do that. Unless your disk performance is really weak, restores in PostgreSQL are usually CPU bound right now. There's a new parallel restore feature in 8.4 that may make sequential write performance a more likely upper bound to run into, assuming your table structure is amenable to loading in parallel (situations with just one giant table won't benefit as much). -- * Greg Smith gsmith@gregsmith.com http://www.gregsmith.com Baltimore, MD