| From: | Juan José Santamaría Flecha <juanjo(dot)santamaria(at)gmail(dot)com> |
|---|---|
| To: | Victor Spirin <v(dot)spirin(at)postgrespro(dot)ru> |
| Cc: | Thomas Munro <thomas(dot)munro(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Michael Paquier <michael(at)paquier(dot)xyz> |
| Subject: | Re: Atomic rename feature for Windows. |
| Date: | 2021-10-01 12:37:53 |
| Message-ID: | CAC+AXB1GCPwrWd8gFXVb4St2th+CFWSwrSbLBxzwyXAOZcC93w@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Thu, Sep 30, 2021 at 11:00 PM Victor Spirin <v(dot)spirin(at)postgrespro(dot)ru>
wrote:
>
> IsWindowsVersionOrGreater(10,0,1607) always returns false
>
> Only IsWindowsVersionOrGreater(10,0,0) is a valid call. (There are no
> service packs in Windows 10.)
>
> I haven't found a way to determine the Windows 10 release ID.
> The RtlGetVersion function returns dwBuildNumber = 19042 on my Windows.
>
> I heard that Microsoft does not support older versions of Windows 10 and
> requires a mandatory update.
>
You can translate the BuildNumber to the ReleaseId, for 1607 it will be 14393
[1].
We might find pretty much anything in the wild, the safer the check the
better.
[1] https://en.wikipedia.org/wiki/Windows_10_version_history
Regards,
Juan José Santamaría Flecha
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Alvaro Herrera | 2021-10-01 12:53:48 | Re: pgsql: Document XLOG_INCLUDE_XID a little better |
| Previous Message | Sergey Shinderuk | 2021-10-01 12:31:23 | Re: Memory leak in pg_hmac_final |