Simplify some logic in CreateReplicationSlot()
authorMichael Paquier <michael@paquier.xyz>
Tue, 21 Nov 2023 04:55:01 +0000 (13:55 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 21 Nov 2023 04:55:01 +0000 (13:55 +0900)
commite83aa9f92fdd88c2912cc43a61fd9f59f4c8f4d3
treed4a5b6c0dc112c20b6875a721bcc05bdc474b77c
parent7c3fb505b14e86581b6a052075a294c78c91b123
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
src/backend/replication/walsender.c