Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id F27EAB37937 for ; Sun, 10 Jun 2012 05:20:46 -0300 (ADT) Received: from mail-wg0-f42.google.com ([74.125.82.42]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SddO8-0007g5-Vp for pgsql-performance@postgresql.org; Sun, 10 Jun 2012 08:20:46 +0000 Received: by wgbds11 with SMTP id ds11so2449168wgb.1 for ; Sun, 10 Jun 2012 01:20:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding:x-gm-message-state; bh=kawY8UoYLZSB/0R9uq+ArNc0w0AVmcMRkn9eXEqw4RQ=; b=fsHsnWILDEsB2pLxZnQgT6NlUTuzWO07PsfVN97+LkSKTs8FkP4nQPhnZjOU/8NZ/K 8AnbsTWJK3lmDRCVIdYK2FUpKMAaJLCF6S4R+Luad61NzRhqVVvPYHANHpbZ+vKeK6hw fzMdrquUjNqE+Tdzd/BOKrDixpBqr0uUb0JECM8qymxGN+OJPb2ojpbz9B93/D99Hy5G EE+wkpRFuS+n0dVq5a4APwaL5Xo/rkuhMAnjm62mv6vWqRN2H0ggahJ4TduVj/+06Kk7 VhKUbavkw9s0zlr44fwI4zaKb1QrodjVeL+BK5uL4Jj1YIlIlqyT1gaBLNSIgFokJ978 q6Tw== Received: by 10.216.145.149 with SMTP id p21mr4425181wej.1.1339316429782; Sun, 10 Jun 2012 01:20:29 -0700 (PDT) Received: from [192.168.0.110] (cpc4-ware5-2-0-cust97.9-1.cable.virginmedia.com. [86.5.172.98]) by mx.google.com with ESMTPS id q6sm15396255wiy.0.2012.06.10.01.20.27 (version=SSLv3 cipher=OTHER); Sun, 10 Jun 2012 01:20:28 -0700 (PDT) Message-ID: <4FD458CA.3070902@optrak.com> Date: Sun, 10 Jun 2012 09:20:26 +0100 From: Mark Thornton User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Performance of CLUSTER Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQn7YW/1g5ovD/KhUVnSgeG7J4W+0XBN1Inyf5YLL4IUCSX0oKZ24CJTv2CG+rIyYt9FC8uY X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201206/54 X-Sequence-Number: 47080 What is the expected performance of cluster and what tuning parameters have most effect? I have a set of 5 tables with identical structure (all inherit a common table). The sizes given are total relation size. The clustering index is a gist index on a (non null) geographic(linestring) column 1. 327600 rows, 105MB, 15.8s 2. 770165 rows, 232MB, 59.5s 3. 1437041 rows, 424MB, 140s 4. 3980922 rows, 1167MB, 276s 5. 31843368 rows, 9709MB, ~ 10 hours Server is version 9.1. with postgis 1.5.4. Regards, Mark Thornton