From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | "Andrey M(dot) Borodin" <x4mmm(at)yandex-team(dot)ru> |
Cc: | Daniel Gustafsson <daniel(at)yesql(dot)se>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: psql tests hangs |
Date: | 2023-05-11 12:59:43 |
Message-ID: | CAFj8pRD3zvES7mk8A=n3jkyA1VLcfH50-joFuK4EPyoWh12zWg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi
čt 11. 5. 2023 v 11:36 odesílatel Andrey M. Borodin <x4mmm(at)yandex-team(dot)ru>
napsal:
>
>
> > On 10 May 2023, at 09:58, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)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(at)localhost psql]$ cat test.pl
use locale;
my $result = sprintf('SELECT 1 \watch c=3 i=%g', 0.01);
print ">>$result<<\n";
[pavel(at)localhost psql]$ perl test.pl
>>SELECT 1 \watch c=3 i=0,01<<
[pavel(at)localhost psql]$ LANG=C perl test.pl
>>SELECT 1 \watch c=3 i=0.01<<
Regards
Pavel
From | Date | Subject | |
---|---|---|---|
Next Message | Alexander Lakhin | 2023-05-11 13:00:01 | Re: benchmark results comparing versions 15.2 and 16 |
Previous Message | Daniel Gustafsson | 2023-05-11 12:21:22 | Re: createuser --memeber and PG 16 |