From: | Michael Paquier <michael(at)paquier(dot)xyz> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Simplify some logic in CreateReplicationSlot() |
Date: | 2023-11-21 04:55:14 |
Message-ID: | E1r5In4-006T4x-Gv@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2023-11-21 14:01:01 | pgsql: Avoid overflow in fe_utils' printTable() |
Previous Message | Amit Kapila | 2023-11-21 02:40:02 | pgsql: Log messages for replication slot acquisition and release. |