Lists: | pgsql-interfaces |
---|
From: | Murray Cumming <murrayc(at)murrayc(dot)com> |
---|---|
To: | pgsql-interfaces(at)postgresql(dot)org |
Subject: | Initial database size on disk |
Date: | 2010-06-19 23:54:14 |
Message-ID: | 1276991654.17689.2.camel@murrayc-x61 |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-interfaces |
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.
--
murrayc(at)murrayc(dot)com
www.murrayc.com
www.openismus.com
From: | Simon Riggs <simon(at)2ndQuadrant(dot)com> |
---|---|
To: | Murray Cumming <murrayc(at)murrayc(dot)com> |
Cc: | pgsql-interfaces(at)postgresql(dot)org |
Subject: | Re: Initial database size on disk |
Date: | 2010-06-20 00:22:04 |
Message-ID: | 1276993324.23257.102118.camel@ebony |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-interfaces |
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?
--
Simon Riggs www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Training and Services
From: | Murray Cumming <murrayc(at)murrayc(dot)com> |
---|---|
To: | Simon Riggs <simon(at)2ndQuadrant(dot)com> |
Cc: | pgsql-interfaces(at)postgresql(dot)org |
Subject: | Re: Initial database size on disk |
Date: | 2010-06-20 08:23:34 |
Message-ID: | 1277022214.421.1.camel@murrayc-x61 |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-interfaces |
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.
--
murrayc(at)murrayc(dot)com
www.murrayc.com
www.openismus.com
From: | Simon Riggs <simon(at)2ndQuadrant(dot)com> |
---|---|
To: | Murray Cumming <murrayc(at)murrayc(dot)com> |
Cc: | pgsql-interfaces(at)postgresql(dot)org |
Subject: | Re: Initial database size on disk |
Date: | 2010-06-20 10:58:43 |
Message-ID: | 1277031523.23257.108542.camel@ebony |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | 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.com
PostgreSQL Development, 24x7 Support, Training and Services
From: | Devrim GUNDUZ <devrim(at)gunduz(dot)org> |
---|---|
To: | Murray Cumming <murrayc(at)murrayc(dot)com> |
Cc: | "pgsql-interfaces(at)postgresql(dot)org" <pgsql-interfaces(at)postgresql(dot)org> |
Subject: | Re: Initial database size on disk |
Date: | 2010-06-20 12:59:08 |
Message-ID: | B44FE489-07DA-41C7-9FE5-CB06F6B3112E@gunduz.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-interfaces |
20.Haz.2010 tarihinde 02:54 saatinde, Murray Cumming <murrayc(at)murrayc(dot)com
> şunları yazdı:
> 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.
You can recompile PostgreSQL with a smaller wal size, which will
reduce initial size a bit. I am not sure about the side effects though.
Regards.
--
Devrim GÜNDÜZ
PostgreSQL DBA @ Akinon/Markafoni, Red Hat Certified Engineer
devrim~gunduz.org, devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
http://www.gunduz.org Twitter: http://twitter.com/devrimgunduz
From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Devrim GUNDUZ <devrim(at)gunduz(dot)org> |
Cc: | Murray Cumming <murrayc(at)murrayc(dot)com>, "pgsql-interfaces(at)postgresql(dot)org" <pgsql-interfaces(at)postgresql(dot)org> |
Subject: | Re: Initial database size on disk |
Date: | 2010-06-20 15:11:29 |
Message-ID: | 24982.1277046689@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-interfaces |
Devrim GUNDUZ <devrim(at)gunduz(dot)org> writes:
> 20.Haz.2010 tarihinde 02:54 saatinde, Murray Cumming <murrayc(at)murrayc(dot)com
>>> unlar yazd:
>> 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.
> You can recompile PostgreSQL with a smaller wal size, which will
> reduce initial size a bit. I am not sure about the side effects though.
There might be some value in that if you expect your database instances
will always be small and low in write volume. Otherwise you're just
shooting yourself in the foot for a transitory gain.
regards, tom lane