Re: How to deal with smaller xlogs?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "big_mafa" <big_mafa(at)freemail(dot)hu>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: How to deal with smaller xlogs?
Date: 2003-10-22 16:56:59
Message-ID: 17114.1066841819@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

"big_mafa" <big_mafa(at)freemail(dot)hu> writes:
> So, I realized, that PostgreSql doesn't truncates the xlog
> automatically.

Sure it does. However, the default allocation unit for xlog is 16MB,
so you're not going to be able to do anything in "a few MB".

You could try reducing the xlog allocation unit to a meg or two, but
I'm not sure exactly how much you'd have to change (it's probably not
a one-liner, because we don't officially support alternative sizes).
I'm also not sure that performance would be good if you did.

If you need a database with a tiny disk footprint, you might want to
look at Berkeley DB, or something else designed to be an embedded
database.

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Michael Glaesmann 2003-10-22 17:07:53 Functional index problems. (Was: Many joins: monthly summaries S-L--O--W)
Previous Message big_mafa 2003-10-22 15:11:53 How to deal with smaller xlogs?