Re: max_standby_delay considered harmful
От
Florian Pflug
Тема
Re: max_standby_delay considered harmful
Дата
Msg-id
3700B58D-452D-458D-983D-D68B7A91DA97@phlo.org
Ответ на
Re: max_standby_delay considered harmful (Heikki Linnakangas)
Список
Дерево обсуждения
Re: max_standby_delay considered harmful "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
On May 10, 2010, at 11:43 , Heikki Linnakangas wrote: > If you're not going to apply any more WAL records before shutdown, you > could also just release all the AccessExclusiveLocks held by the startup > process. Whatever the transaction was doing with the locked relation, if > we're not going to replay any more WAL records before shutdown, we will > not see the transaction committing or doing anything else with the > relation, so we should be safe. Whatever state the data on disk is in, > it must be valid, or we would have a problem with crash recovery > recovering up to this WAL record and then starting up too. Sounds plausible. But wouldn't this imply that HS could *always* postpone the acquisition of an AccessExclusiveLocks until right before the corresponding commit record is replayed? If fail to see a case where this would fail, yet recovery in case of an intermediate crash would be correct. best regards, Florian Pflug
В списке pgsql-hackers по дате отправления
От: Kenichiro Tanaka
Дата: