| From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
|---|---|
| To: | Simon Riggs <simon(at)2ndquadrant(dot)com> |
| Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: Zeroing damaged pages |
| Date: | 2006-02-28 18:37:51 |
| Message-ID: | 200602281837.k1SIbpZ14142@candle.pha.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers pgsql-patches |
Simon Riggs wrote:
> On Thu, 2006-02-23 at 11:54 -0500, Tom Lane wrote:
> > Simon Riggs <simon(at)2ndquadrant(dot)com> writes:
> > > A patch prototype to make zero_damaged_pages work as advertised is
> > > enclosed, though the current behaviour may well be preferred, in which
> > > case a doc patch is more appropriate.
> >
> > I don't think this is a good idea, and even if it were, the proposed
> > patch is a model of obscurantism.
>
> ;-)
>
> Just some reflections on a recent db recovery for a client.
>
> > > However, since autovacuum the window of opportunity for support to
> > > assist with data recovery is smaller and somewhat random.
> >
> > Hmm .... it'd probably be a good idea to force zero_damaged_pages OFF in
> > the autovac subprocess. That parameter is only intended for interactive
> > use --- as you say, autovac would be a rather nasty loose cannon if it
> > fired up with this parameter ON.
>
> We can:
> - disable zero_damaged_pages in autovac
I am wondering if we should prevent autovac from running if
zero_damaged_pages is set in postgresql.conf. I can imagine autovac
aborting when trying to read a damaged page if zero_damaged_pages is
ignored.
We can't prevent zero_damaged_pages from being set in postgresql.conf
because it is possible for the system to be so corrupted that you can't
even start a backend without it being set.
--
Bruce Momjian http://candle.pha.pa.us
SRA OSS, Inc. http://www.sraoss.com
+ If your life is a hard drive, Christ can be your backup. +
| From | Date | Subject | |
|---|---|---|---|
| Next Message | John DeSoi | 2006-02-28 18:52:48 | Re: character encoding in StartupMessage |
| Previous Message | Tom Lane | 2006-02-28 18:30:44 | Re: [HACKERS] how solve diff of API counstruct_md_array between |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Neil Conway | 2006-02-28 19:21:10 | cleanup StringInfo usage |
| Previous Message | Tom Lane | 2006-02-28 18:30:44 | Re: [HACKERS] how solve diff of API counstruct_md_array between |