From: | Aleksander Alekseev <aleksander(at)timescale(dot)com> |
---|---|
To: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Cc: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
Subject: | Re: Escape output of pg_amcheck test |
Date: | 2024-01-08 12:45:06 |
Message-ID: | CAJ7c6TPR0q0aaVf389rMYWvPXXo2tpTUDVpB85SMvaEqCiE4qQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi,
> The pg_amcheck reports a skip message if the layout of the index does
> not match expectations. That message includes the bytes that were
> expected and the ones that were found. But the found ones are arbitrary
> bytes, which can have funny effects on the terminal when they are
> printed. To avoid that, escape non-word characters before printing.
LGTM.
I didn't get the part about the /r modifier at first, but "man perlre" helped:
"""
r - perform non-destructive substitution and return the new value
"""
The /a modifier requires Perl >= 5.14, which is fine [1].
[1]: https://www.postgresql.org/docs/current/install-requirements.html
--
Best regards,
Aleksander Alekseev
From | Date | Subject | |
---|---|---|---|
Next Message | Daniel Gustafsson | 2024-01-08 12:48:54 | Re: INFORMATION_SCHEMA note |
Previous Message | Geoff Winkless | 2024-01-08 11:53:47 | Re: weird GROUPING SETS and ORDER BY behaviour |