psql - refactor echo code

When Who What
2023-04-03 20:03:48 Greg Stark (stark) Closed in commitfest 2023-03 with status: Returned with feedback
2023-02-02 14:18:57 Peter Eisentraut (petere) Added petere as reviewer
2023-01-31 16:47:29 vigneshwaran C (vignesh.postgres) Closed in commitfest 2023-01 with status: Moved to next CF
2022-11-30 07:46:06 Michael Paquier (michael-kun) Closed in commitfest 2022-11 with status: Moved to next CF
2022-11-30 07:46:03 Michael Paquier (michael-kun) New status: Waiting on Author
2022-10-12 06:09:33 Michael Paquier (michael-kun) Closed in commitfest 2022-09 with status: Moved to next CF
2022-08-01 17:16:56 Jacob Champion (jchampion) Closed in commitfest 2022-07 with status: Moved to next CF
2022-07-24 20:24:10 Pavel Stehule (okbobcz) New status: Ready for Committer
2022-07-01 16:46:16 Pavel Stehule (okbobcz) Added okbobcz as reviewer
2022-04-08 13:08:33 Greg Stark (stark) Closed in commitfest 2022-03 with status: Moved to next CF
2022-02-02 16:37:51 Julien Rouhaud (rjuju) Closed in commitfest 2022-01 with status: Moved to next CF
2021-12-22 07:54:41 Shinya Kato (shinyakato) Changed reviewers to
2021-12-02 13:53:53 Daniel Gustafsson (d_gustafsson) Closed in commitfest 2021-11 with status: Moved to next CF
2021-10-06 11:47:59 Fabien Coelho (calvin) New status: Needs review
2021-10-03 16:02:50 Jaime Casanova (jcasanov) New status: Waiting on Author
2021-10-03 16:02:36 Jaime Casanova (jcasanov) Closed in commitfest 2021-09 with status: Moved to next CF
2021-10-03 16:02:31 Jaime Casanova (jcasanov) New status: Needs review
2021-08-03 02:49:48 Masahiko Sawada (masahikosawada) New status: Waiting on Author
2021-08-03 02:47:15 Masahiko Sawada (masahikosawada) Closed in commitfest 2021-07 with status: Moved to next CF
2021-08-03 02:47:12 Masahiko Sawada (masahikosawada) New status: Needs review
2021-07-13 22:16:40 Tom Lane (tgl) New status: Waiting on Author
2021-07-11 13:05:49 vigneshwaran C (vignesh.postgres) New status: Ready for Committer
2021-07-10 14:49:44 vigneshwaran C (vignesh.postgres) New status: Needs review
2021-06-15 09:17:14 Shinya Kato (kato-shinya) New status: Ready for Committer
2021-06-15 09:16:04 Shinya Kato (kato-shinya) Added kato-shinya as reviewer
2021-05-30 09:10:37 Fabien Coelho (calvin) Changed authors to Fabien Coelho (calvin)
2021-05-30 09:10:31 Fabien Coelho (calvin) Attached mail thread alpine.DEB.2.22.394.2105301104400.3020016@pseudo
2021-05-30 09:10:31 Fabien Coelho (calvin) Created patch record