Re: Initial database size on disk - Mailing list pgsql-interfaces

From Simon Riggs
Subject Re: Initial database size on disk
Date
Msg-id 1277031523.23257.108542.camel@ebony
Whole thread Raw
In response to Re: Initial database size on disk  (Murray Cumming <murrayc@murrayc.com>)
List pgsql-interfaces
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.comPostgreSQL Development, 24x7 Support, Training and Services



pgsql-interfaces by date:

Previous
From: Murray Cumming
Date:
Subject: Re: Initial database size on disk
Next
From: Devrim GUNDUZ
Date:
Subject: Re: Initial database size on disk