pgsql: Simplify some logic in CreateReplicationSlot() - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Simplify some logic in CreateReplicationSlot()
Date
Msg-id E1r5In4-006T4x-Gv@gemulon.postgresql.org
Whole thread Raw
List 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 by date:

Previous
From: Amit Kapila
Date:
Subject: pgsql: Log messages for replication slot acquisition and release.
Next
From: Alvaro Herrera
Date:
Subject: pgsql: Avoid overflow in fe_utils' printTable()