Re: pgstattuple triggered checkpoint failure and database outage? - Mailing list pgsql-general

From Tom Lane
Subject Re: pgstattuple triggered checkpoint failure and database outage?
Date
Msg-id 28154.1238464772@sss.pgh.pa.us
Whole thread Raw
In response to pgstattuple triggered checkpoint failure and database outage?  (Stuart Bishop <stuart@stuartbishop.net>)
Responses Re: pgstattuple triggered checkpoint failure and database outage?
List pgsql-general
Stuart Bishop <stuart@stuartbishop.net> writes:
> I just had a brief outage on a production server running 8.3.6, which
> I suspect was triggered by me running a table bloat report making lots
> of pgstattuple calls.

> The first I got of it was the script I'd just kicked off died:

> could not open segment 1 of relation 1663/16409/11088101 (target block
> 131292): No such file or directory
> CONTEXT:  writing block 131292 of relation 1663/16409/11088101
> ...
> Doing an immediate shutdown and restart seems to have brought
> everything back online.

What's the actual size of that relation now?  Is it growing rapidly?
(I'm trying to figure out whether those writes *should* have succeeded,
or whether the block numbers were corrupt in memory.)

            regards, tom lane

pgsql-general by date:

Previous
From: Ow Mun Heng
Date:
Subject: partial TEXT search on an index
Next
From: Tom Lane
Date:
Subject: Re: running two servers on one machine