Escape output of pg_amcheck test

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Escape output of pg_amcheck test
Date: 2024-01-08 07:27:57
Message-ID: 3f96f079-64e5-468a-8a19-cb481f0d31e5@eisentraut.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

Attachment Content-Type Size
0001-Escape-output-of-pg_amcheck-test.patch text/plain 1.4 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bertrand Drouvot 2024-01-08 07:34:48 Re: Add a perl function in Cluster.pm to generate WAL
Previous Message Junwang Zhao 2024-01-08 07:24:40 Re: Change GUC hashtable to use simplehash?