pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
[pgvector/pgvector] issue #906: Plans to adopt PostgreSQL 18 parallel I/O for index page reads?
7+ messages / 2 participants
[nested] [flat]

* [pgvector/pgvector] issue #906: Plans to adopt PostgreSQL 18 parallel I/O for index page reads?
@ 2025-10-01 06:45 "SunnyBo0302 (@SunnyBo0302)" <noreply+SunnyBo0302@github.com>
  0 siblings, 0 replies; 7+ messages in thread

From: SunnyBo0302 (@SunnyBo0302) @ 2025-10-01 06:45 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Hello,

I’m curious whether there are any plans to integrate PostgreSQL 18’s new asynchronous/parallel I/O features (e.g., io_method, io_workers, io_max_concurrency) into index access methods. In particular, will index page reads (such as those in pgvector’s IVF/HNSW search) be able to take advantage of the new parallel read infrastructure, rather than relying solely on synchronous ReadBuffer calls?

Thanks!

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

* Re: [pgvector/pgvector] issue #906: Plans to adopt PostgreSQL 18 parallel I/O for index page reads?
@ 2025-10-06 19:53 ` "ankane (@ankane)" <noreply+ankane@github.com>
  5 siblings, 0 replies; 7+ messages in thread

From: ankane (@ankane) @ 2025-10-06 19:53 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Hi @SunnyBo0302, there's [a branch](https://github.com/pgvector/pgvector/compare/hnsw-read-stream) for this for HNSW. However, I saw a significant regression in performance with `io_method = worker` (the default for Postgres 18) on Linux when the data doesn't fit into shared buffers, and no difference in performance in the other scenarios that were tested:

1. x86-64 and aarch64
2. pg17 and pg18 (with different io_methods)
3. NAS and local storage
4. cold and warm page cache
5. data fits and doesn't fit in shared buffers

I'd expect async I/O to be especially beneficial for HNSW, so I'm not sure why that isn't the case here (and welcome any contributions to address it).


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

* Re: [pgvector/pgvector] issue #906: Plans to adopt PostgreSQL 18 parallel I/O for index page reads?
@ 2026-01-12 18:39 ` "ankane (@ankane)" <noreply+ankane@github.com>
  5 siblings, 0 replies; 7+ messages in thread

From: ankane (@ankane) @ 2026-01-12 18:39 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Quick update: This will likely require upstream changes ([relevant discussion](https://www.postgresql.org/message-id/flat/CA%2BhUKGL-3mBtkA9RTbLFHuSS5cviuv0ko7nBhCg9KM7Q-GSEkw%40m...)).

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

* Re: [pgvector/pgvector] issue #906: Plans to adopt PostgreSQL 18 parallel I/O for index page reads?
@ 2026-06-13 01:10 ` "ankane (@ankane)" <noreply+ankane@github.com>
  5 siblings, 0 replies; 7+ messages in thread

From: ankane (@ankane) @ 2026-06-13 01:10 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Seeing good results with Postgres 19 beta 1 and the [hnsw-read-stream3 branch](https://github.com/pgvector/pgvector/compare/hnsw-read-stream3) (when the page cache is cold), so planning to include it in 0.9.0.

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

* Re: [pgvector/pgvector] issue #906: Plans to adopt PostgreSQL 18 parallel I/O for index page reads?
@ 2026-09-23 23:24 ` "ankane (@ankane)" <noreply+ankane@github.com>
  5 siblings, 0 replies; 7+ messages in thread

From: ankane (@ankane) @ 2026-09-23 23:24 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Latest update: Currently seeing [better results](https://github.com/pgvector/pgvector/pull/1020#issuecomment-5804171231) prefetching buffers directly ([hnsw-prefetch branch](https://github.com/pgvector/pgvector/compare/hnsw-prefetch)), so also considering that approach for 0.9.0.

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

* Re: [pgvector/pgvector] issue #906: Plans to adopt PostgreSQL 18 parallel I/O for index page reads?
@ 2026-10-24 05:33 ` "ankane (@ankane)" <noreply+ankane@github.com>
  5 siblings, 0 replies; 7+ messages in thread

From: ankane (@ankane) @ 2026-10-24 05:33 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

@ankane closed this.

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

* Re: [pgvector/pgvector] issue #906: Plans to adopt PostgreSQL 18 parallel I/O for index page reads?
@ 2026-10-24 05:37 ` "ankane (@ankane)" <noreply+ankane@github.com>
  5 siblings, 0 replies; 7+ messages in thread

From: ankane (@ankane) @ 2026-10-24 05:37 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Merged support in the commit above.

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


end of thread, other threads:[~2026-10-24 05:37 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-10-01 06:45 [pgvector/pgvector] issue #906: Plans to adopt PostgreSQL 18 parallel I/O for index page reads? "SunnyBo0302 (@SunnyBo0302)" <noreply+SunnyBo0302@github.com>
2025-10-06 19:53 ` "ankane (@ankane)" <noreply+ankane@github.com>
2026-01-12 18:39 ` "ankane (@ankane)" <noreply+ankane@github.com>
2026-06-13 01:10 ` "ankane (@ankane)" <noreply+ankane@github.com>
2026-09-23 23:24 ` "ankane (@ankane)" <noreply+ankane@github.com>
2026-10-24 05:33 ` "ankane (@ankane)" <noreply+ankane@github.com>
2026-10-24 05:37 ` "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