Comparing two double values method

From: Bowen Shi <zxwsbg12138(at)gmail(dot)com>
To: Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Comparing two double values method
Date: 2023-10-10 10:31:48
Message-ID: CAM_vCudjye0sFXOWaoaYg6J=OT8jq9Hy-EGCc30qE6CU=9Pf5w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

--
Regard,
Bowen Shi

Attachment Content-Type Size
v1-0001-Fix-double-value-compare-problem.patch application/octet-stream 1005 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message vignesh C 2023-10-10 10:34:32 Re: Making aggregate deserialization (and WAL receive) functions slightly faster
Previous Message Aleksander Alekseev 2023-10-10 10:01:21 Re: Advice about preloaded libraries