Re: WAL reducing size

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: WAL reducing size
Дата
Msg-id 20171204211250.ljsaxf2jhedjjerj@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: WAL reducing size  (sql2pg <sekhar.career@gmail.com>)
Ответы Re: WAL reducing size  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-general
sql2pg wrote:
> how about uncommitted(open transactions) .  if a segment has 1 committed and
> 2 uncommitted transactions then will it keep the segment instead deleting it
> after checkpoint , since it has 2 uncommitted transactions 

There is no connection between transaction commit and checkpoint
removing WAL files.  WAL files are removed after two checkpoints have
occured, regardless of transactions that might be open.  The on-disk
effects of those transactions that occured before the earlier checkpoint
are already on disk anyway.  The commit record might appear at whatever
point in the future, and the rows will not become visible to other
transactions until then, regardless of what happened to the WAL
segments.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


В списке pgsql-general по дате отправления:

Предыдущее
От: sql2pg
Дата:
Сообщение: Re: WAL reducing size
Следующее
От: David Pacheco
Дата:
Сообщение: Re: [GENERAL] postmaster deadlock while logging after syslogger exited