Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby

Поиск
Список
Период
Сортировка
Искать
От
Andres Freund
Тема
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby
Дата
Msg-id
20160204131003.h7obwkeaellkcewb@alap3.anarazel.de
Ответ на
Список
Дерево обсуждения
Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Jeff Janes <jeff.janes@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Robert Haas <robertmhaas@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Andres Freund <andres@anarazel.de>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Michael Paquier <michael.paquier@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Michael Paquier <michael.paquier@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Andres Freund <andres@anarazel.de>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Michael Paquier <michael.paquier@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Andres Freund <andres@anarazel.de>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Michael Paquier <michael.paquier@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Michael Paquier <michael.paquier@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Robert Haas <robertmhaas@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Andres Freund <andres@anarazel.de>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Robert Haas <robertmhaas@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Andres Freund <andres@anarazel.de>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Robert Haas <robertmhaas@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Michael Paquier <michael.paquier@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Michael Paquier <michael.paquier@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Michael Paquier <michael.paquier@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Amit Kapila <amit.kapila16@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Michael Paquier <michael.paquier@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Amit Kapila <amit.kapila16@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Michael Paquier <michael.paquier@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Amit Kapila <amit.kapila16@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Michael Paquier <michael.paquier@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Amit Kapila <amit.kapila16@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Michael Paquier <michael.paquier@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Amit Kapila <amit.kapila16@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Michael Paquier <michael.paquier@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Andres Freund <andres@anarazel.de>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Michael Paquier <michael.paquier@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Michael Paquier <michael.paquier@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Amit Kapila <amit.kapila16@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Andres Freund <andres@anarazel.de>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Amit Kapila <amit.kapila16@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Andres Freund <andres@anarazel.de>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Amit Kapila <amit.kapila16@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Michael Paquier <michael.paquier@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Michael Paquier <michael.paquier@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Andres Freund <andres@anarazel.de>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Michael Paquier <michael.paquier@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Andres Freund <andres@anarazel.de>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Robert Haas <robertmhaas@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Andres Freund <andres@anarazel.de>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Robert Haas <robertmhaas@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Michael Paquier <michael.paquier@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Michael Paquier <michael.paquier@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Robert Haas <robertmhaas@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Michael Paquier <michael.paquier@gmail.com>
Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby David Steele <david@pgmasters.net>
Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Michael Paquier <michael.paquier@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Simon Riggs <simon@2ndQuadrant.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Simon Riggs <simon@2ndQuadrant.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Michael Paquier <michael.paquier@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Michael Paquier <michael.paquier@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Michael Paquier <michael.paquier@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Michael Paquier <michael.paquier@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Amit Kapila <amit.kapila16@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Michael Paquier <michael.paquier@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Amit Kapila <amit.kapila16@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Michael Paquier <michael.paquier@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Amit Kapila <amit.kapila16@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Michael Paquier <michael.paquier@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Amit Kapila <amit.kapila16@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Michael Paquier <michael.paquier@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Amit Kapila <amit.kapila16@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Michael Paquier <michael.paquier@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Amit Kapila <amit.kapila16@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Michael Paquier <michael.paquier@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Amit Kapila <amit.kapila16@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Andres Freund <andres@anarazel.de>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Michael Paquier <michael.paquier@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Michael Paquier <michael.paquier@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Amit Kapila <amit.kapila16@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Michael Paquier <michael.paquier@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Michael Paquier <michael.paquier@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Michael Paquier <michael.paquier@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Michael Paquier <michael.paquier@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Michael Paquier <michael.paquier@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Andres Freund <andres@anarazel.de>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Amit Kapila <amit.kapila16@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Michael Paquier <michael.paquier@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Michael Paquier <michael.paquier@gmail.com>
Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Jeff Janes <jeff.janes@gmail.com>
On 2016-02-04 18:21:41 +0530, Amit Kapila wrote:
> I think generally it is good idea, but one thing worth a thought is that
> by doing so, we need to acquire all WAL Insertion locks every
> LOG_SNAPSHOT_INTERVAL_MS to check the last_insert_pos for
> every slot, do you think it is matter of concern in any way for write
> workloads or it won't effect as we need to do this periodically?

Michael and I just had an in-person discussion, and one of the topics
was that. The plan was basically to adapt the patch to:
1) Store the progress lsn inside the wal insert lock
2) Change the HasActivity API to return an the last LSN at which there  was activity, instead of a boolean.
2) Individually acquire each insert locks's lwlock to get it's progress  LSN, but not the exclusive insert lock. We need the lwllock to avoid  a torn 8byte read on some platforms.

I think that mostly should address your concerns?

Andres


В списке pgsql-hackers по дате отправления
От: Ashutosh Bapat
Дата:
От: Amit Kapila
Дата:
FAQ