Re: Clarification Regarding Vacuum and template1

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ludwig Isaac Lim <ludz_lim(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Clarification Regarding Vacuum and template1
Date: 2006-02-07 15:13:56
Message-ID: 6991.1139325236@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ludwig Isaac Lim <ludz_lim(at)yahoo(dot)com> writes:
> Under normal circumstances, there's no need to vacuum
> template1 right?

Only if it hasn't been modified.

> Its quite difficult to imagine XID
> wraparound problems occuring in template1. I can't think
> how can 4 billion transactions occur in template1 if
> template1 is just used as a template in creating a new
> database.

> Am I missing something here?

Yes: the wraparound limit is for transactions cluster-wide, not per
database. If you make 1 change in template1 and then 2 billion
changes in some other databases, template1 is broken unless it's
been vacuumed meanwhile.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Gevik Babakhani 2006-02-07 15:18:23 Re: Commercial Use
Previous Message Nikolay Samokhvalov 2006-02-07 15:13:14 Re: Sequences/defaults and pg_dump