agora inbox for pgsql-interfaces@postgresql.org
help / color / mirror / Atom feedFrom: Simon Riggs <simon@2ndQuadrant.com>
To: Murray Cumming <murrayc@murrayc.com>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Initial database size on disk
Date: Sun, 20 Jun 2010 11:58:43 +0100
Message-ID: <1277031523.23257.108542.camel@ebony> (raw)
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>
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
view thread (6+ messages) latest in thread
Message-ID: <1277031523.23257.108542.camel@ebony>
Permalink: ../1277031523.23257.108542.camel@ebony/
Also on: postgresql.org/message-id/1277031523.23257.108542.camel@ebony
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: simon@2ndQuadrant.com, murrayc@murrayc.com
Subject: Re: Initial database size on disk
In-Reply-To: <1277031523.23257.108542.camel@ebony>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox