From 856d01ff68716e543fed90799ea83c05b81fd71a Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Thu, 9 Mar 2023 15:28:53 +0200 Subject: [PATCH] Add newline at end of postgresql.conf --- compute_tools/src/pg_helpers.rs | 1 + compute_tools/tests/pg_helpers_tests.rs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/compute_tools/src/pg_helpers.rs b/compute_tools/src/pg_helpers.rs index 6a1377b6aa..47f64f581d 100644 --- a/compute_tools/src/pg_helpers.rs +++ b/compute_tools/src/pg_helpers.rs @@ -109,6 +109,7 @@ impl PgOptionsSerialize for GenericOptions { .map(|op| op.to_pg_setting()) .collect::>() .join("\n") + + "\n" // newline after last setting } else { "".to_string() } diff --git a/compute_tools/tests/pg_helpers_tests.rs b/compute_tools/tests/pg_helpers_tests.rs index dc1bbbdc8a..c92bb13668 100644 --- a/compute_tools/tests/pg_helpers_tests.rs +++ b/compute_tools/tests/pg_helpers_tests.rs @@ -49,7 +49,8 @@ max_replication_slots = 10 neon.timeline_id = '2414a61ffc94e428f14b5758fe308e13' shared_preload_libraries = 'neon' synchronous_standby_names = 'walproposer' -neon.pageserver_connstring = 'host=127.0.0.1 port=6400'"# +neon.pageserver_connstring = 'host=127.0.0.1 port=6400' +"# ); }