Re: [GENERAL] Corrupt database? 8.1/FreeBSD6.0

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Jeff Amiel <becauseimjeff(at)yahoo(dot)com>, pgsql-patches(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [GENERAL] Corrupt database? 8.1/FreeBSD6.0
Date: 2007-01-12 20:13:44
Message-ID: 20070112201344.GJ27743@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers pgsql-patches

Alvaro Herrera wrote:
> Tom Lane wrote:
> > Alvaro Herrera <alvherre(at)commandprompt(dot)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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Brandon Aiken 2007-01-12 20:39:34 Re: FK Constraint on index not PK
Previous Message Bruce Momjian 2007-01-12 19:34:26 Re: ORDER BY col is NULL in UNION causes error?

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2007-01-12 20:45:42 Re: [GENERAL] Corrupt database? 8.1/FreeBSD6.0
Previous Message Bruce Momjian 2007-01-12 20:04:46 Re: [PATCHES] Patch to log usage of temporary

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2007-01-12 20:45:42 Re: [GENERAL] Corrupt database? 8.1/FreeBSD6.0
Previous Message Bruce Momjian 2007-01-12 20:04:46 Re: [PATCHES] Patch to log usage of temporary