Re: Helper functions for wait_for_catchup() in Cluster.pm

Поиск
Список
Период
Сортировка
Искать
От
Alvaro Herrera
Тема
Re: Helper functions for wait_for_catchup() in Cluster.pm
Дата
Msg-id
20230124182728.bp6cyo74c77hb4vn@alvherre.pgsql
Ответ на
Список
Дерево обсуждения
Helper functions for wait_for_catchup() in Cluster.pm "Drouvot, Bertrand" <bertranddrouvot.pg@gmail.com>
Re: Helper functions for wait_for_catchup() in Cluster.pm Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: Helper functions for wait_for_catchup() in Cluster.pm "Drouvot, Bertrand" <bertranddrouvot.pg@gmail.com>
Re: Helper functions for wait_for_catchup() in Cluster.pm Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: Helper functions for wait_for_catchup() in Cluster.pm "Drouvot, Bertrand" <bertranddrouvot.pg@gmail.com>
Re: Helper functions for wait_for_catchup() in Cluster.pm Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: Helper functions for wait_for_catchup() in Cluster.pm "Drouvot, Bertrand" <bertranddrouvot.pg@gmail.com>
Re: Helper functions for wait_for_catchup() in Cluster.pm Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: Helper functions for wait_for_catchup() in Cluster.pm "Drouvot, Bertrand" <bertranddrouvot.pg@gmail.com>
Re: Helper functions for wait_for_catchup() in Cluster.pm Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: Helper functions for wait_for_catchup() in Cluster.pm "Drouvot, Bertrand" <bertranddrouvot.pg@gmail.com>
Looking again, I have two thoughts for making things easier:

1. I don't think wait_for_write_catchup is necessary, because
calling wait_for_catchup() and omitting the 'mode' and 'lsn' arguments
would already do the same thing.  So what we should do is patch places
that currently give those two arguments, so that they don't.

2. Because wait_for_replay_catchup is an instance method, passing the
second node as argument is needlessly noisy, because that's already
known as $self.  So we can just say

  $primary_node->wait_for_replay_catchup($standby_node);

-- 
Álvaro Herrera         PostgreSQL Developer  —  https://www.EnterpriseDB.com/


В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата:
От: Nathan Bossart
Дата:
FAQ