From: ankane (@ankane) <noreply+ankane@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #953: is the HNSW built on disk or on memory for the the latest version
Date: Thu, 05 Feb 2026 08:22:48 +0000
Message-ID: <gh-pgvector-pgvector-953-c3851803946@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-953@github.com>
References: <gh-pgvector-pgvector-953@github.com>
Hi @wlzhao22, Postgres indexes are stored on-disk and loaded into memory as needed. See [this comment for how an HNSW index is built](https://github.com/pgvector/pgvector/blob/v0.8.1/src/hnswbuild.c#L1-L36).