pgsql: Refactor replorigin_session_setup() for better readability.

Поиск
Список
Период
Сортировка
От Amit Kapila
Тема pgsql: Refactor replorigin_session_setup() for better readability.
Дата
Msg-id E1w5blG-001U5U-2K@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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 <hlinnaka@iki.fi>
Reviewed-by: shveta malik <shveta.malik@gmail.com>
Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>
Discussion: https://postgr.es/m/e0508305-bc6a-417c-b969-36564d632f9e@iki.fi

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(-)


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