Re: Question: test "aggregates" failed in 32-bit machine

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Question: test "aggregates" failed in 32-bit machine
Дата
Msg-id 650665.1664554391@sss.pgh.pa.us
обсуждение исходный текст
Ответ на RE: Question: test "aggregates" failed in 32-bit machine  ("kuroda.hayato@fujitsu.com" <kuroda.hayato@fujitsu.com>)
Ответы Re: Question: test "aggregates" failed in 32-bit machine
Re: Question: test "aggregates" failed in 32-bit machine
Список pgsql-hackers
"kuroda.hayato@fujitsu.com" <kuroda.hayato@fujitsu.com> writes:
> Hmm, I was not sure about additional conditions, sorry.
> I could reproduce with followings steps: 

I tried this on a 32-bit VM with gcc 11.3, but couldn't reproduce.
You said earlier

>> OS: RHEL 6.10 server 
>> Arch: i686
>> Gcc: 4.4.7

That is an awfully old compiler; I fear I no longer have anything
comparable on a working platform.

The most likely theory, I think, is that that compiler is generating
slightly different floating-point code causing different plans to
be costed slightly differently than what the test case is expecting.
Probably, the different orderings of the keys in this test case have
exactly the same cost, or almost exactly, so that different roundoff
error could be enough to change the selected plan.

This probably doesn't have a lot of real-world impact, but it's
still annoying on a couple of grounds.  Failing regression isn't
nice, and also this suggests that db0d67db2 is causing us to waste
time considering multiple plans with effectively equal costs.
Maybe that code needs to filter a little harder.

            regards, tom lane



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: [PATCH v1] [meson] add a default option prefix=/usr/local/pgsql
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Question: test "aggregates" failed in 32-bit machine