Re: Comparing two double values method

From: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
To: Bowen Shi <zxwsbg12138(at)gmail(dot)com>, Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Comparing two double values method
Date: 2023-10-10 10:56:47
Message-ID: d8501fcb-62fc-4396-b442-781377f1a0c7@iki.fi
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 10/10/2023 13:31, Bowen Shi wrote:
> Dears,
>
> I noticed that in the `check_GUC_init` function, there is a direct
> comparison using the != operator for two double values, which seems
> problematic.
>
> I wrote this patch to fix this.

No, the compile-time initial values should match exactly.

--
Heikki Linnakangas
Neon (https://neon.tech)

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Matthias van de Meent 2023-10-10 10:57:04 Re: Lowering the default wal_blocksize to 4K
Previous Message Matthias van de Meent 2023-10-10 10:55:15 Re: Comparing two double values method