Re: Some incorrect logs in TAP tests of pgbench

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: Some incorrect logs in TAP tests of pgbench
Дата
Msg-id e80eb434-3584-96ce-a987-d3b52aabb222@dunslane.net
обсуждение исходный текст
Ответ на Some incorrect logs in TAP tests of pgbench  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: Some incorrect logs in TAP tests of pgbench  (Michael Paquier <michael@paquier.xyz>)
Re: Some incorrect logs in TAP tests of pgbench  (Fabien COELHO <coelho@cri.ensmp.fr>)
Список pgsql-hackers
On 6/25/21 8:33 AM, Michael Paquier wrote:
> Hi all,
>
> While digging into some of the TAP tests, I have noticed that
> 002_pgbench_no_server.pl prints array pointers, like that:
> opts=-f no-such-file, stat=1, out=ARRAY(0x1374d7990),
> err=ARRAY(0x14028dc40), name=pgbench option error: no file# Running:
> pgbench -f no-such-file
>
> I am a bit dubious that this information is useful when it comes to
> debugging because we have the name of the tests close by, so I would
> just remove those extra logs.  If people prefer keeping this
> information around, we could fix the format with something like the
> attached, for example.
>
> Thoughts?


Either that or dereference them, by printing @$out and @$err instead of
$out and $err or something similar.

But probably the name of the test is sufficient. (What were we thinking
in allowing this in the first place?)


cheers


andrew

--
Andrew Dunstan
EDB: https://www.enterprisedb.com




В списке pgsql-hackers по дате отправления:

Предыдущее
От: vignesh C
Дата:
Сообщение: Re: alter subscription drop publication fixes
Следующее
От: Ranier Vilela
Дата:
Сообщение: Re: Fix uninitialized copy_data var (src/backend/commands/subscriptioncmds.c)