From a5f70ee63449dd9fe9b4aa9ac54fcfddfc4bdf7e Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Fri, 4 Dec 2026 22:23:14 -0800 Subject: [PATCH] Dropped support for 32-bit systems [skip ci] --- .github/workflows/build.yml | 24 ------------------------ CHANGELOG.md | 1 + src/bitutils.h | 5 +++++ 3 files changed, 6 insertions(+), 24 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ce7c0625..887d035e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -104,30 +104,6 @@ jobs: shell: cmd - if: ${{ failure() }} run: cat regression.diffs - i386: - if: ${{ !startsWith(github.ref_name, 'mac') && !startsWith(github.ref_name, 'windows') }} - # https://github.com/actions/runner-images/issues/14790 - runs-on: ubuntu-24.04 - container: - image: debian:12 - options: --platform linux/386 - steps: - - run: apt-get update && apt-get install -y build-essential git libipc-run-perl postgresql-15 postgresql-server-dev-15 sudo - - run: service postgresql start - - run: | - git clone https://github.com/${{ github.repository }}.git pgvector - cd pgvector - git fetch origin ${{ github.ref }} - git reset --hard FETCH_HEAD - make - make install - chown -R postgres . - sudo -u postgres make installcheck - sudo -u postgres make prove_installcheck - env: - PG_CFLAGS: -DUSE_ASSERT_CHECKING -Wall -Wextra -Werror -Wno-unused-parameter -Wno-sign-compare - - if: ${{ failure() }} - run: cat pgvector/regression.diffs valgrind: if: ${{ !startsWith(github.ref_name, 'mac') && !startsWith(github.ref_name, 'windows') }} runs-on: ubuntu-latest diff --git a/CHANGELOG.md b/CHANGELOG.md index e0cc35db..90838d65 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ - Fixed buffer usage statistics for parallel index builds - Fixed worker query ID for parallel index builds - Dropped support for Postgres 13 and 14 +- Dropped support for 32-bit systems ## 0.8.7 (2026-10-01) diff --git a/src/bitutils.h b/src/bitutils.h index 1a68cfa7..e94ba085 100644 --- a/src/bitutils.h +++ b/src/bitutils.h @@ -8,6 +8,11 @@ #error "Requires PostgreSQL 15+" #endif +/* Check for 64-bit system in first header */ +#if SIZEOF_VOID_P < 8 || SIZEOF_SIZE_T < 8 +#error "Requires 64-bit" +#endif + extern uint64 (*BitHammingDistance) (uint32 bytes, unsigned char *ax, unsigned char *bx, uint64 distance); extern double (*BitJaccardDistance) (uint32 bytes, unsigned char *ax, unsigned char *bx, uint64 ab, uint64 aa, uint64 bb);