pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: adey <adey11@gmail.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Cc: PostgreSQL Admin <postgres@productivitymedia.com>
Cc: postgresql-l <postgresql-l@Groups.ittoolbox.com>
Subject: Re: Fwd: vacuuming template0 gave ERROR
Date: Sun, 30 Jul 2006 21:30:24 -0400
Message-ID: <21519.1154309424@sss.pgh.pa.us> (raw)
In-Reply-To: <1c66bda80607301716g1c28ce39w8bb6544252df61d1@mail.gmail.com>
References: <F0238EBA67824444BC1CB4700960CB48EED441@dmpeints002.isotach.com>
	<1c66bda80607301716g1c28ce39w8bb6544252df61d1@mail.gmail.com>

adey <adey11@gmail.com> writes:
> select datname, age(datfrozenxid), datfrozenxid, current_date, current_time
> FROM pg_database

> If template0 shouldn't be touched (and I don't know of deliberate access to
> it), why is this changing please?

Because current xid is changing and template0's datfrozenxid is not.

Nonetheless, if template0 is properly frozen then you don't need to
vacuum it, regardless of what age(datfrozenxid) says.

			regards, tom lane



view thread (9+ messages)  latest in thread

Message-ID: <21519.1154309424@sss.pgh.pa.us>
Permalink:  ../21519.1154309424@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/21519.1154309424@sss.pgh.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, adey11@gmail.com, postgres@productivitymedia.com, postgresql-l@Groups.ittoolbox.com
  Subject: Re: Fwd: vacuuming template0 gave ERROR
  In-Reply-To: <21519.1154309424@sss.pgh.pa.us>
  References: <F0238EBA67824444BC1CB4700960CB48EED441@dmpeints002.isotach.com> <1c66bda80607301716g1c28ce39w8bb6544252df61d1@mail.gmail.com> <21519.1154309424@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox