From: VladlenPopolitov (@VladlenPopolitov) <noreply+VladlenPopolitov@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #667: Please add a note to README warning of limitations on Windows
Date: Wed, 11 Sep 2024 21:17:28 +0000
Message-ID: <gh-pgvector-pgvector-667-c2344718375@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-667@github.com>
References: <gh-pgvector-pgvector-667@github.com>
@ankane Correct! If compiled by MSVC, then compiler uses sizeof(long)==4
#if SIZEOF_SIZE_T > 4 && SIZEOF_LONG > 4
It looks like Cygwin only has sizeof(long)==8 in Windows-x64.
And reason for this strange behaviour - some variables in Postgres code that use work_mem variables values are declared as long instead of int64.