From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Simon Riggs <simon(at)2ndQuadrant(dot)com>, "devrim(at)gunduz(dot)org" <devrim(at)gunduz(dot)org>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Re: [COMMITTERS] pgsql: Properly set relpersistence for fake relcache entries. |
Date: | 2012-09-16 02:39:51 |
Message-ID: | 99C1FCEF-43B0-417F-832A-CDC8938B7A14@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers pgsql-hackers |
On Sep 15, 2012, at 11:29 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Robert Haas <robertmhaas(at)gmail(dot)com> writes:
>> Definitions aside, I think it's a pretty scary issue. It basically means that if you have a recovery (crash or archive) during which you read a buffer into memory, the buffer won't be checkpointed. So if, before the buffer is next evicted, you have a crash, and if at least one checkpoint has intervened between the most recent WAL-logged operation on the buffer and the crash, you're hosed. That's not a terribly unlikely scenario.
>
> This is only an issue on standby slaves or when doing a PITR recovery, no?
> As far as I can tell from the discussion, it would *not* affect crash
> recovery, because we don't do restartpoints during crash recovery.
No, I think it does affect crash recovery. Whether or not restartspoints happen during recovery doesn't matter; what does matter is that after recovery there may be shared buffers that are erroneously not marked as permanent. Such buffers won't be checkpointed except at shutdown time, which is wrong.
...Robert
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2012-09-16 04:32:18 | Re: Re: [COMMITTERS] pgsql: Properly set relpersistence for fake relcache entries. |
Previous Message | Andres Freund | 2012-09-15 19:00:13 | Re: [COMMITTERS] pgsql: Properly set relpersistence for fake relcache entries. |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2012-09-16 04:32:18 | Re: Re: [COMMITTERS] pgsql: Properly set relpersistence for fake relcache entries. |
Previous Message | Peter Eisentraut | 2012-09-16 00:31:50 | _FORTIFY_SOURCE by default? |