Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 869F11337B7B for ; Fri, 29 Oct 2010 13:16:25 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 32614-08 for ; Fri, 29 Oct 2010 16:16:18 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pv0-f174.google.com (mail-pv0-f174.google.com [74.125.83.174]) by mail.postgresql.org (Postfix) with ESMTP id 239911337B3E for ; Fri, 29 Oct 2010 13:16:17 -0300 (ADT) Received: by pvb32 with SMTP id 32so100278pvb.19 for ; Fri, 29 Oct 2010 09:16:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=Du7Ah/ijc2jJFLFfa4LA0RkDnhBWljNu3cK8sldPoj4=; b=cr4JUULtKcjXxX+UvAV6aiEGa6rTM6f813Y6E+oBsH5AuvVSB307ZbU1RBHVJdBysq xkvqSFdPKO8PfBez3qDreUchSDxSNC8u31Hff+qoOYi/MPlKdNzAWaL2GIOuwHFcrXo8 HyvGCDS1+HGdUNSWx1V8Jassr4toegNysxWns= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=X3uwbj43hgpAOE6j3iy0iCo5hki4eZK93ymAel4mbWb3hnRlmIttxxX0R/31s0UeQs sy7ZYyrdgUvqXaMeT2xjxySicSO+SAYF3y6PjU7IzzS9WNamJMrapEI+5Nad4YSTiTv5 PdznMD4drqGcr7NI4vKWilQ9RVtlCpVp4IzAU= Received: by 10.142.165.10 with SMTP id n10mr1472780wfe.70.1288368977000; Fri, 29 Oct 2010 09:16:17 -0700 (PDT) Received: from [192.168.1.106] (74-95-195-236-SFBA.hfc.comcastbusiness.net [74.95.195.236]) by mx.google.com with ESMTPS id w22sm2115598wfd.19.2010.10.29.09.16.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 29 Oct 2010 09:16:16 -0700 (PDT) Subject: Re: partitioning question 1 Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=us-ascii From: Ben In-Reply-To: Date: Fri, 29 Oct 2010 09:16:13 -0700 Cc: Content-Transfer-Encoding: quoted-printable Message-Id: <59555E0F-71C2-4062-AD23-F1B7B9993354@gmail.com> References: To: Igor Neyman X-Mailer: Apple Mail (2.1081) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201010/571 X-Sequence-Number: 40989 On Oct 29, 2010, at 7:38 AM, Igor Neyman wrote: >> is my intuition completely off on this? >>=20 >> best regards, ben >>=20 >=20 > If your SELECT retrieves substantial amount of records, table scan = could > be more efficient than index access. >=20 > Now, if while retrieving large amount of records "WHERE clause" of = this > SELECT still satisfies constraints on some partition(s), then = obviously > one (or few) partition scans will be more efficient than full table = scan > of non-partitioned table. >=20 > So, yes partitioning provides performance improvements, not only > maintenance convenience. my impression was that a *clustered* index would give a lot of the same = I/O benefits, in a more flexible way. if you're clustered on the column = in question, then an index scan for a range is much like a sequential = scan over a partition (as far as i understand.) b=