Re: [GENERAL] Corrupt database? 8.1/FreeBSD6.0 - Mailing list pgsql-patches

From Alvaro Herrera
Subject Re: [GENERAL] Corrupt database? 8.1/FreeBSD6.0
Date
Msg-id 20070112201344.GJ27743@alvh.no-ip.org
Whole thread Raw
In response to Re: [GENERAL] Corrupt database? 8.1/FreeBSD6.0  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: [GENERAL] Corrupt database? 8.1/FreeBSD6.0
List pgsql-patches
Alvaro Herrera wrote:
> Tom Lane wrote:
> > Alvaro Herrera <alvherre@commandprompt.com> writes:
>
> > > Maybe we could forcibly activate the freeze mode on a template database?
> >
> > Might not be a bad idea.  And even more to the point, forcibly disable
> > analyze.
>
> Patch implementing this (albeit untested!) attached.  I'll try to
> reproduce the problem without the patch, and then test with the patch
> applied.

Ok, it does what it's intended to do.  But in testing it I also
confirmed that a database-wide vacuum creates a pgstat entry for it and
for all tables in it.  Is this something we want to prevent?

I'll apply this patch later today to the 8.1 branch unless somebody
objects.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

pgsql-patches by date:

Previous
From: "Guillaume Smet"
Date:
Subject: Re: [PATCHES] Patch to log usage of temporary files
Next
From: Tom Lane
Date:
Subject: Re: [GENERAL] Corrupt database? 8.1/FreeBSD6.0