pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
[pgvector/pgvector] issue #889: pgvector 0.8.0 + hnsw on azure postgresql flexible server stopped working
3+ messages / 2 participants
[nested] [flat]

* [pgvector/pgvector] issue #889: pgvector 0.8.0 + hnsw on azure postgresql flexible server stopped working
@ 2025-08-21 12:38 "chsami (@chsami)" <noreply+chsami@github.com>
  0 siblings, 0 replies; 3+ messages in thread

From: chsami (@chsami) @ 2025-08-21 12:38 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Description:
We are seeing queries fail in production after upgrading to pgvector 0.8.0

Query example:

WHERE (t."Embedding" <=> $1) < 0.6
ORDER BY t.c


Error output:

server process (PID 3853) was terminated by signal 4: Illegal instruction
detail: Failed process was running
terminating any other active server processes
FATAL:  the database system is in recovery mode

Environment:

pgvector version: 0.8.0

PostgreSQL version: 16.9

Hosting: Azure Database for PostgreSQL [Flexible Server/Single Server]

Steps to reproduce:

Run a similarity query using <=> on a table with embeddings.

Observe crash with Illegal instruction.

Expected behavior:
Query should return similarity results without crashing the server.

Actual behavior:
Server process crashes and triggers recovery mode.

Notes:

Issue seems related to the upgrade from pgvector 0.7.x to 0.8.0.


GPT analysis:

**Root Cause – CPU Instruction Incompatibility**

The likely cause of these crashes is a CPU instruction mismatch between the pgvector extension and the underlying hardware. In pgvector 0.8.0, the extension was compiled with aggressive optimizations (using -march=native on some platforms) to leverage advanced CPU instructions for speed
[pgxn.org](https://pgxn.org/dist/vector/0.8.0/#:~:text=By%20default%2C%20pgvector%20compiles%20with,extension%2...)
. This means the binary may include SIMD/vector instructions (e.g. AVX/AVX2) that are available on the build machine’s CPU. If the Azure DB server’s actual CPU does not support those specific instructions, any attempt to execute them will trigger an illegal instruction fault, crashing the server process

Happens consistently on production workloads.

^ permalink  raw  [nested|flat] 3+ messages in thread

* Re: [pgvector/pgvector] issue #889: pgvector 0.8.0 + hnsw on azure postgresql flexible server stopped working
@ 2025-08-21 17:31 ` "ankane (@ankane)" <noreply+ankane@github.com>
  1 sibling, 0 replies; 3+ messages in thread

From: ankane (@ankane) @ 2025-08-21 17:31 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Hi @chsami, it sounds like pgvector wasn't compiled for [portability](https://github.com/pgvector/pgvector?tab=readme-ov-file#portability). Please report this to your hosting provider.

^ permalink  raw  [nested|flat] 3+ messages in thread

* Re: [pgvector/pgvector] issue #889: pgvector 0.8.0 + hnsw on azure postgresql flexible server stopped working
@ 2025-08-21 17:31 ` "ankane (@ankane)" <noreply+ankane@github.com>
  1 sibling, 0 replies; 3+ messages in thread

From: ankane (@ankane) @ 2025-08-21 17:31 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

@ankane closed this.

^ permalink  raw  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2025-08-21 17:31 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-08-21 12:38 [pgvector/pgvector] issue #889: pgvector 0.8.0 + hnsw on azure postgresql flexible server stopped working "chsami (@chsami)" <noreply+chsami@github.com>
2025-08-21 17:31 ` "ankane (@ankane)" <noreply+ankane@github.com>
2025-08-21 17:31 ` "ankane (@ankane)" <noreply+ankane@github.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox