Skip to content

Commit e7e33bc

Browse files
authored
Fix pg_autoctl show settings --json output. (#697)
The formation context parts should also be an array, even when we know it contains a single element for now.
1 parent 66e5dfe commit e7e33bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/bin/pg_autoctl/monitor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2794,7 +2794,7 @@ monitor_print_formation_settings_as_json(Monitor *monitor, char *formation)
27942794
" ), "
27952795
" f(json) as "
27962796
" ( "
2797-
" select row_to_json(settings) "
2797+
" select jsonb_agg(row_to_json(settings)) "
27982798
" from settings "
27992799
" where context = 'formation' "
28002800
" ), "

0 commit comments

Comments
 (0)