Refactor replorigin_session_setup() for better readability. Reorder the validation checks in replorigin_session_setup() to provide a more logical flow. This makes the function easier to follow and ensures that basic state checks are performed consistently.
Additionally, update an error message to align its phrasing with similar diagnostics in the replication origin subsystem, improving overall consistency. Author: Heikki Linnakangas <[email protected]> Reviewed-by: shveta malik <[email protected]> Reviewed-by: Amit Kapila <[email protected]> Discussion: https://postgr.es/m/[email protected] Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/735e8fe685359480e77d837493a5dc0a38866944 Modified Files -------------- src/backend/replication/logical/origin.c | 79 +++++++++++++++++++------------- 1 file changed, 47 insertions(+), 32 deletions(-)
