pgbackrest.git / summary / log / commit / refs

commit    ae258f604e634f1d2a760ffdb92dd359fd1129bb
Author:   David Steele <david@pgmasters.net>
Commit:   GitHub <noreply@github.com>
Date:     Tue Dec 27 13:28:38 2022 +0000

    Add replacement for linefeeds in monitoring example.
    
    The copy command was converting \n to a linefeed, which the json conversion did not like. In a healthy repository there won't be any linefeeds but certain errors can contain them.
    
    Fix by loading into a text field and then replacing the linefeed when converting to jsonb.


doc/example/pgsql-pgbackrest-info.sql | 4 ++-- doc/xml/release.xml | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/doc/example/pgsql-pgbackrest-info.sql b/doc/example/pgsql-pgbackrest-info.sql index 16e98567c..61d4a9fce 100644 --- a/doc/example/pgsql-pgbackrest-info.sql +++ b/doc/example/pgsql-pgbackrest-info.sql @@ -13,14 +13,14 @@ declare data jsonb; begin -- Create a temp table to hold the JSON data - create temp table temp_pgbackrest_data (data jsonb); + create temp table temp_pgbackrest_data (data text); -- Copy data into the table directly from the pgBackRest info command copy temp_pgbackrest_data (data) from program 'pgbackrest --output=json info' (format text); - select temp_pgbackrest_data.data + select replace(temp_pgbackrest_data.data, E'\n', '\n')::jsonb into data from temp_pgbackrest_data; diff --git a/doc/xml/release.xml b/doc/xml/release.xml index 695575fed..43d0095f2 100644 --- a/doc/xml/release.xml +++ b/doc/xml/release.xml @@ -65,6 +65,25 @@ </release-item> </release-development-list> </release-core-list> + + <release-doc-list> + <release-improvement-list> + <release-item> + <github-issue id="1910"/> + <github-pull-request id="1963"/> + + <release-item-contributor-list> + <release-item-ideator id="rudonx"/> + <release-item-ideator id="gmustdie"/> + <release-item-ideator id="ivan.shelestov"/> + <release-item-contributor id="david.steele"/> + <release-item-reviewer id="stefan.fercot"/> + </release-item-contributor-list> + + <p>Add replacement for linefeeds in monitoring example.</p> + </release-item> + </release-improvement-list> + </release-doc-list> </release> <release date="2022-11-28" version="2.43" title="Bug Fix"> @@ -12066,6 +12085,11 @@ <contributor-id type="github">gkleen</contributor-id> </contributor> + <contributor id="gmustdie"> + <contributor-name-display>gmustdie</contributor-name-display> + <contributor-id type="github">gmustdie</contributor-id> + </contributor> + <contributor id="greg.sabino.mullane"> <contributor-name-display>Greg Sabino Mullane</contributor-name-display> <contributor-id type="github">turnstep</contributor-id> @@ -12110,6 +12134,11 @@ <contributor-id type="github">Isaacwhyuenac</contributor-id> </contributor> + <contributor id="ivan.shelestov"> + <contributor-name-display>Ivan Shelestov</contributor-name-display> + <contributor-id type="github">Shelestov7</contributor-id> + </contributor> + <contributor id="reid.thompson"> <contributor-name-display>Reid Thompson</contributor-name-display> <contributor-id type="github">jreidthompson</contributor-id> @@ -12498,6 +12527,11 @@ <contributor-id type="github">rdunklau</contributor-id> </contributor> + <contributor id="rudonx"> + <contributor-name-display>rudonx</contributor-name-display> + <contributor-id type="github">rudonx</contributor-id> + </contributor> + <contributor id="ryan.lambert"> <contributor-name-display>Ryan Lambert</contributor-name-display> <contributor-id type="github">rustprooflabs</contributor-id> [parent: 44da314adb2b]