Re: PRI?64 vs Visual Studio (2022)

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: PRI?64 vs Visual Studio (2022)
Date: 2025-11-25 14:55:12
Message-ID: c5f4040e-87bb-46b4-b5a3-27ba113091ca@eisentraut.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 24.11.25 00:03, Thomas Munro wrote:
> On Sun, Nov 23, 2025 at 4:25 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> Thomas Munro <thomas(dot)munro(at)gmail(dot)com> writes:
>>> That'd leave only Cygwin with HAVE BUGGY_STRTOF. Perhaps they have
>>> fixed their implementation[1]? Here's an experimental patch to drop
>>> all remnants, which could be used to find out. No Windows/Cygwin
>>> here. Hmm, what if we just commit it anyway? If their strtof() is
>>> still broken and someone out there is running the tests and sees this
>>> test fail, why shouldn't they take that up with libc at this stage?
>>
>> Hmm, we could get rid of the whole resultmap mechanism ...
>
> Yeah. I thought I'd see what blowback my
> if-Cygwin-strtof()-really-is-still-broken-they-should-fix-it argument
> attracted before spending the time to nuke all those lines too.
> Here's that patch. We could always revert resultmap we found a new
> reason to need it, but I hope we wouldn't.

These patches look sensible to me.

Maybe wait a bit to see if Andrew can manually reproduce the issue one
way or the other on Cygwin.

Otherwise, I'd say go for it.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2025-11-25 15:01:45 Re: Extended test coverage and docs for SSL passphrase commands
Previous Message Daniel Gustafsson 2025-11-25 14:50:01 The pgperltidy diffs in HEAD