Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 4A12B6323AE for ; Sun, 20 Jun 2010 07:58:57 -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 19076-03 for ; Sun, 20 Jun 2010 10:58:49 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail148111.authsmtp.net (outmail148111.authsmtp.net [62.13.148.111]) by mail.postgresql.org (Postfix) with ESMTP id 39BAB6302CB for ; Sun, 20 Jun 2010 07:58:50 -0300 (ADT) Received: from mail-c187.authsmtp.com (mail-c187.authsmtp.com [62.13.128.33]) by punt8.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id o5KAwkHb002653; Sun, 20 Jun 2010 11:58:46 +0100 (BST) Received: from [192.168.0.2] (88-110-191-21.dynamic.dsl.as9105.com [88.110.191.21]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2) with ESMTP id o5KAwipb030440; Sun, 20 Jun 2010 11:58:44 +0100 (BST) Subject: Re: Initial database size on disk From: Simon Riggs To: Murray Cumming Cc: pgsql-interfaces@postgresql.org In-Reply-To: <1277022214.421.1.camel@murrayc-x61> References: <1276991654.17689.2.camel@murrayc-x61> <1276993324.23257.102118.camel@ebony> <1277022214.421.1.camel@murrayc-x61> Content-Type: text/plain Date: Sun, 20 Jun 2010 11:58:43 +0100 Message-Id: <1277031523.23257.108542.camel@ebony> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Content-Transfer-Encoding: 7bit X-Server-Quench: cbc09a5b-7c5a-11df-ab46-001185d377ca X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdxZQATClZOTQEd DAteCiN5VAwpPBRK HVkIKg5MJUcNSQVJ NksadBtFagVbZ0xf HGQLWlREUVx7XGt/ bw8fZQ1DY0tOQQRj UVZLQ01XHAJ3AVJe A2VvFUAyJQVFeHp0 ZQhhXHBdEhcoJkZ0 E0sGCGpVYDZ9aWFL Bl0JJQdSbQNKfx5N bwR8U3ReMCtlM3Bw LC4VAx0LExx0BR9g CiALLE4TSEJDEjcg ThoLBjhnBkwXSm00 KVQqK0UfdL+w X-Authentic-SMTP: 61633235383639.1000:706/Kp X-AuthFastPath: 0 (Was 255) X-AuthVirus-Status: No virus detected - but ensure you scan with your own anti-virus system. X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.001 tagged_above=-5 required=5 tests=BAYES_40=-0.001 X-Spam-Level: X-Archive-Number: 201006/9 X-Sequence-Number: 6910 On Sun, 2010-06-20 at 10:23 +0200, Murray Cumming wrote: > On Sun, 2010-06-20 at 01:22 +0100, Simon Riggs wrote: > > On Sun, 2010-06-20 at 01:54 +0200, Murray Cumming wrote: > > > > > When using the initdb command-line utility to create a new PostgreSQL > > > database cluster, is there any way to specify the starting size used on > > > disk? By default it seems to take around 38MB. > > > > Why do you want to do that? Make it bigger, or smaller? > > I would like to make it smaller. I use PostgreSQL in my Glom application > to host (initially) small amounts of data, starting a PostgreSQL > instance automatically whenever the data must be opened. You can compile it smaller if you want, though you might hit some problems nobody has seen before. There appears to be a fair amount of "wasted" space, which tells me nobody has ever really looked at this. WAL files are 16MB, so you're main problem is there. Use a compressed filesystem. -- Simon Riggs www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Training and Services