pgsql: Simplify some logic in CreateReplicationSlot()

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема pgsql: Simplify some logic in CreateReplicationSlot()
Дата
Msg-id E1r5In4-006T4x-Gv@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Simplify some logic in CreateReplicationSlot()

This refactoring reduces the code in charge of creating replication
slots from two "if" block to a single one, making it slightly cleaner.

This change is possible since 1d04a59be31b, that has removed the
intermediate code that existed between the two "if" blocks in charge of
initializing the output message buffer.

Author: Peter Smith
Discussion: https://postgr.es/m/CAHut+PtnJzqKT41Zt8pChRzba=QgCqjtfYvcf84NMj3VFJoKfw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e83aa9f92fdd88c2912cc43a61fd9f59f4c8f4d3

Modified Files
--------------
src/backend/replication/walsender.c | 32 ++++++++++++++++----------------
1 file changed, 16 insertions(+), 16 deletions(-)


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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: pgsql: Log messages for replication slot acquisition and release.
Следующее
От: Alvaro Herrera
Дата:
Сообщение: pgsql: Avoid overflow in fe_utils' printTable()