Re: Corrupt database? 8.1/FreeBSD6.0

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Jeff Amiel <becauseimjeff(at)yahoo(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Corrupt database? 8.1/FreeBSD6.0
Date: 2007-01-12 14:52:57
Message-ID: 6668.1168613577@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers pgsql-patches

Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> Hmm, as far as I can tell, the database entry would not be created
> merely by a vacuum. The only way to create a database entry in pgstat
> is by calling pgstat_recv_tabstat(); and pgstat_report_tabstat is only
> called in postgres.c (not invoked via autovacuum) and in
> pgstat_beshutdown_hook (not sure if this one is).

The shutdown hook surely is called, and the scenario for sending stats
seems pretty obvious: stats_block_level = ON.

> 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.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2007-01-12 15:00:12 Re: Need setup help for Postgresql 8.1.3 on Solaris
Previous Message Tom Lane 2007-01-12 14:47:55 Re: [HACKERS] Checkpoint request failed on version 8.2.1.

Browse pgsql-hackers by date

  From Date Subject
Next Message Jonah H. Harris 2007-01-12 14:54:03 Re: SPAR Simple PostgreSQL AddOn Replication System
Previous Message Tom Lane 2007-01-12 14:47:55 Re: [HACKERS] Checkpoint request failed on version 8.2.1.

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2007-01-12 15:05:49 Re: Allow dumping of roles or tablespaces
Previous Message Alvaro Herrera 2007-01-12 14:38:07 Re: Corrupt database? 8.1/FreeBSD6.0