Re: psql tests hangs

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: psql tests hangs
Дата
Msg-id CAFj8pRD3zvES7mk8A=n3jkyA1VLcfH50-joFuK4EPyoWh12zWg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: psql tests hangs  ("Andrey M. Borodin" <x4mmm@yandex-team.ru>)
Список pgsql-hackers
Hi


čt 11. 5. 2023 v 11:36 odesílatel Andrey M. Borodin <x4mmm@yandex-team.ru> napsal:


> On 10 May 2023, at 09:58, Pavel Stehule <pavel.stehule@gmail.com> wrote:
>
> When I remove this test, then all tests passed

Hi Pavel!

Can you plz share how sprintf('SELECT 1 \watch c=3 i=%g', 0.01) is formatting 0.01 on your system?
And try to run that string against psql.

As an alternative I propose to use "i=0”. I hope 0 is more locale-independent (but I’m not sure)… But the test's coverage will decrease.

Best regards, Andrey Borodin.


[pavel@localhost psql]$ cat test.pl
use locale;
my $result = sprintf('SELECT 1 \watch c=3 i=%g', 0.01);
print ">>$result<<\n";

[pavel@localhost psql]$ perl test.pl
>>SELECT 1 \watch c=3 i=0,01<<
[pavel@localhost psql]$ LANG=C perl test.pl
>>SELECT 1 \watch c=3 i=0.01<<

Regards

Pavel

 

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

Предыдущее
От: Daniel Gustafsson
Дата:
Сообщение: Re: createuser --memeber and PG 16
Следующее
От: Alexander Lakhin
Дата:
Сообщение: Re: benchmark results comparing versions 15.2 and 16