Hacker ApprovedDepartments

pgvector

Hacker Approved

The most recommended of 14 Postgres extensions

People recommend it as an easy way to add vector search inside PostgreSQL, avoiding a separate database; critics say it struggles with very large, fast-changing indexes.

People recommend it as an easy way to add vector search inside PostgreSQL, avoiding a separate database; critics say it struggles with very large, fast-changing indexes.

75 people gave an opinion

recommend it
55
criticize it
20
approval share
73%
Each figure is one person. RecommendsCriticizes

Recommended in 10 of 13 months

  1. November 2025: recommended
  2. December 2025: recommended
  3. January 2026: recommended
  4. February 2026: recommended
  5. March 2026: recommended
  6. April 2026: recommended
  7. May 2026: recommended
  8. June 2026: recommended
  9. July 2026: recommended
  10. August 2026: recommended
  11. September 2026: not recommended
  12. October 2026: not recommended
  13. November 2026: not recommended (month in progress)

Why it carries the badge

  • 55 people recommend itNeeds 10 or more, met.
  • 2.8 recommenders for every criticNeeds 2 to 1 or better, met.
  • Recommended in 10 of 13 monthsNeeds 4 or more, met.

The same three rules apply to every product, and the badge can’t be bought. How the badge works

What people say about it

The reasons people give, with the number of comments that give each one. Open a reason to read what they said.

Why people recommend it

Each mark is one comment

  • Fast enough for many workloads

    “pgvector HNSW indexes (m=64, ef_construction=200) give you sub-100ms semantic search without leaving Postgres”

    Comment from 23 Nov 2025 in “Show HN: I made it fast and easy to launch your own RAG-powered AI chatbots”

    “Even without fancy indexing, a full scan (1 search vector -> 5M stored vectors), takes less than 40ms.”

    Comment from 3 Nov 2025 in “The Case Against PGVector”

    “have seen very fast lookups with pgvector (HNSW index) and sqlite-vec on 20k vectors”

    Comment from 1 Feb 2026 in “Tuning Semantic Search on Jfmm.net”
  • Easy to set up and use

    “you can just add the pgvector extension determine what embeddings that you want to use and try it out without committing to much”

    Comment from 22 Nov 2025 in “Ask HN: How would you architect a RAG system for 10M+ documents today?”

    “I was genuinely surprised just how easy it was to get a fully working RAG set up with Postgres.”

    Comment from 8 Mar 2026 in “You Don't Need a Vector Database”

    “surely the easiest solution is to run `CREATE EXTENSION vector`”

    Comment from 8 Mar 2026 in “You Don't Need a Vector Database”
  • Keeps vectors next to relational data

    “PostgreSQL with pgvector now supports HNSW indexing, meaning you can keep your vectors right next to your relational data.”

    Comment from 1 Mar 2026 on Hacker News

    “if you're already running postgres with pgvector, you're in a good spot”

    Comment from 8 Mar 2026 in “You Don't Need a Vector Database”

    “pgvector could handle their use case with less operational overhead”

    Comment from 5 Mar 2026 in “Show HN: PostgreSQL for AI – A book on pgvector, RAG, and in-database ML”
  • Works for hybrid text and vector search

    “I've been doing some RAG prototypes with hybrid search using pg_textsearch plus pgvector and have been very pleased with the results.”

    Comment from 31 Mar 2026 in “Show HN: How This Graybeard Built the Fastest and Freest Postgres BM25 Search”

    “pgvector + tsvector (for hybrid search) seems like the most logical MVP”

    Comment from 24 Nov 2025 in “Ask HN: How would you architect a RAG system for 10M+ documents today?”

    “hybrid search ( plpgsql_bm25 + pgvector ) with Reciprocal Rank Fusion”

    Comment from 20 Aug 2026 in “PostgreSQL for Everything”

What people warn about

Each mark is one comment

  • Scaling limits at very large sizes

    “the limitations of pgvector are very real when you're talking indices that grow beyond millions of things”

    Comment from 3 Nov 2025 in “The Case Against PGVector”

    “found Postgres to be unsuitable at several orders of magnitude less than we currently have”

    Comment from 3 Nov 2025 in “The Case Against PGVector”

    “pgvector just doesn't really scale to the kinds of workloads we ran here”

    Comment from 3 Dec 2025 in “Real-world vector DB performance across the most popular providers”
  • Struggles with high-velocity inserts

    “But they’re all workarounds for the fact that pgvector wasn’t really designed for high-velocity real-time ingestion.”

    Comment from 3 Nov 2025 in “The Case Against PGVector”

    “Postgres isn't built from the ground-up for high-velocity vector insertions”

    Comment from 4 Nov 2025 in “The Case Against PGVector”

    “can support 15x more updates per second comparing to pgvector's HNSW”

    Comment from 3 Nov 2025 in “The Case Against PGVector”
  • Index rebuilds and high memory use

    “Vacuuming is grief enough. Rebuilding the index sounds like more of a nightmare than with Solr/Lucene.”

    Comment from 4 Nov 2025 in “The Case Against PGVector”

    “IVFFlat indexes have to be periodically rebuilt, that HNSW has high overhead”

    Comment from 4 Nov 2025 in “The Case Against PGVector”

    “HNSW index on a few million vectors can consume 10+ GB of RAM or more”

    Comment from 3 Nov 2025 in “The Case Against PGVector”
  • Hard to predict filtering behavior

    “pg_vector's economics can be much worse, especially in multi-tenant scenarios”

    Comment from 22 Jan 2026 in “ANN v3: 200ms p99 query latency over 100B vectors”

    “it's hard to predict when postgres will decide to use pre- vs post-filtering”

    Comment from 3 Nov 2025 in “The Case Against PGVector”

Other Postgres extensions people recommend

The four most recommended other Postgres extensions, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.

pgvector compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
pgvectorThis page552073%10—Approved
PostGIS20387%8—Approved
pg_lake18386%5—Approved
ParadeDB13193%8—Approved
pg_textsearch100100%7—Approved
See all 14 Postgres extensions, ranked

What people said

40 of the 84 comments that mention it, newest first. Each links to the original comment.

“hybrid search ( plpgsql_bm25 + pgvector ) with Reciprocal Rank Fusion”

MixedComment from 20 Aug 2026 in “PostgreSQL for Everything”

“I used this in a different project (halfvec in pgvector) without affecting results”

RecommendsComment from 4 Jul 2026 in “Show HN: CLI tool for detecting non-exact code duplication with embedding models”

“you can use quantized vector indexes[0] (handled by pgvector) which will get past the limits imposed by PostgreSQL.”

RecommendsComment from 6 Jun 2026 in “pg_durable: Microsoft open sources in-database durable execution”

“a knowledge graph and pgvector which accounts for most of the performance”

MixedComment from 15 May 2026 in “Best "Brain" for Agents Is Just Versioned Folders of Markdown Files”

“I've been doing some RAG prototypes with hybrid search using pg_textsearch plus pgvector and have been very pleased with the results.”

RecommendsComment from 31 Mar 2026 in “Show HN: How This Graybeard Built the Fastest and Freest Postgres BM25 Search”

“I was genuinely surprised just how easy it was to get a fully working RAG set up with Postgres.”

RecommendsComment from 8 Mar 2026 in “You Don't Need a Vector Database”

“if you're already running postgres with pgvector, you're in a good spot”

RecommendsComment from 8 Mar 2026 in “You Don't Need a Vector Database”

“pgvector is great if you're already on postgres and only need text search”

MixedComment from 8 Mar 2026 in “You Don't Need a Vector Database”

“Pgvector is definitely the easiest way to get started.”

RecommendsComment from 8 Mar 2026 in “You Don't Need a Vector Database”

“surely the easiest solution is to run `CREATE EXTENSION vector`”

RecommendsComment from 8 Mar 2026 in “You Don't Need a Vector Database”

“pgvector could handle their use case with less operational overhead”

RecommendsComment from 5 Mar 2026 in “Show HN: PostgreSQL for AI – A book on pgvector, RAG, and in-database ML”

“pgvector's HNSW indexes handle the approximate nearest neighbor search well enough for workplace search”

RecommendsComment from 4 Mar 2026 in “Show HN: Omni – Open-source workplace search and chat, built on Postgres”

“it's certainly simpler than bolting another solution for it”

RecommendsComment from 2 Mar 2026 in “Show HN: Omni – Open-source workplace search and chat, built on Postgres”

“PostgreSQL with pgvector now supports HNSW indexing, meaning you can keep your vectors right next to your relational data.”

RecommendsComment from 1 Mar 2026 on Hacker News

“have seen very fast lookups with pgvector (HNSW index) and sqlite-vec on 20k vectors”

RecommendsComment from 1 Feb 2026 in “Tuning Semantic Search on Jfmm.net”

“pg_vector's economics can be much worse, especially in multi-tenant scenarios”

MixedComment from 22 Jan 2026 in “ANN v3: 200ms p99 query latency over 100B vectors”

“You can use pgvector for the vector lookup and paradedb for bm25.”

RecommendsComment from 15 Jan 2026 in “Ask HN: How are you doing RAG locally?”

“something pgvector itself wasn't able to handle in a reasonable amount of time”

CriticizesComment from 30 Dec 2025 in “Postgres extension complements pgvector for performance and scale”

“We regularly do tens of thousands of QPS on pgvector fine on massive data stores.”

RecommendsComment from 16 Dec 2025 in “7 Years, 2 Rebuilds, 40K+ Stars: Milvus Recap and Roadmap”

“pgvector just doesn't really scale to the kinds of workloads we ran here”

CriticizesComment from 3 Dec 2025 in “Real-world vector DB performance across the most popular providers”

“pgvector + tsvector (for hybrid search) seems like the most logical MVP”

RecommendsComment from 24 Nov 2025 in “Ask HN: How would you architect a RAG system for 10M+ documents today?”

“pgvector HNSW indexes (m=64, ef_construction=200) give you sub-100ms semantic search without leaving Postgres”

RecommendsComment from 23 Nov 2025 in “Show HN: I made it fast and easy to launch your own RAG-powered AI chatbots”

“Fast approximate nearest neighbor search directly in Postgres”

RecommendsComment from 22 Nov 2025 in “Show HN: ChatRAG – Next.js and AI SDK starter to ship RAG chatbots faster”

“you can just add the pgvector extension determine what embeddings that you want to use and try it out without committing to much”

RecommendsComment from 22 Nov 2025 in “Ask HN: How would you architect a RAG system for 10M+ documents today?”

“We actively use pgvector in a production setting for maintaining and querying HNSW vector indexes”

RecommendsComment from 6 Nov 2025 on Hacker News

“Vacuuming is grief enough. Rebuilding the index sounds like more of a nightmare than with Solr/Lucene.”

CriticizesComment from 4 Nov 2025 in “The Case Against PGVector”

“IVFFlat indexes have to be periodically rebuilt, that HNSW has high overhead”

CriticizesComment from 4 Nov 2025 in “The Case Against PGVector”

“Postgres isn't built from the ground-up for high-velocity vector insertions”

MixedComment from 4 Nov 2025 in “The Case Against PGVector”

“the limitations of pgvector are very real when you're talking indices that grow beyond millions of things”

MixedComment from 3 Nov 2025 in “The Case Against PGVector”

“found Postgres to be unsuitable at several orders of magnitude less than we currently have”

CriticizesComment from 3 Nov 2025 in “The Case Against PGVector”

“He doesn't point to a single thing that pg_vector doesn't do or doesn't do well.”

RecommendsComment from 3 Nov 2025 in “The Case Against PGVector”

“Even without fancy indexing, a full scan (1 search vector -> 5M stored vectors), takes less than 40ms.”

RecommendsComment from 3 Nov 2025 in “The Case Against PGVector”

“If you need vector search against 100,000 vectors and you already have PostgreSQL then pgvector is a great YAGNI solution.”

RecommendsComment from 3 Nov 2025 in “The Case Against PGVector”

“But they’re all workarounds for the fact that pgvector wasn’t really designed for high-velocity real-time ingestion.”

CriticizesComment from 3 Nov 2025 in “The Case Against PGVector”

“HNSW index on a few million vectors can consume 10+ GB of RAM or more”

CriticizesComment from 3 Nov 2025 in “The Case Against PGVector”

“it's hard to predict when postgres will decide to use pre- vs post-filtering”

CriticizesComment from 3 Nov 2025 in “The Case Against PGVector”

“as the author noted is not without some flaws and are typically in the smallish range”

MixedComment from 3 Nov 2025 in “The Case Against PGVector”

“all the mentioned issues are resolved, I will favour in using the PGVector”

RecommendsComment from 3 Nov 2025 in “The Case Against PGVector”

“can support 15x more updates per second comparing to pgvector's HNSW”

CriticizesComment from 3 Nov 2025 in “The Case Against PGVector”

“We do at Discourse, in thousands of databases, and it's leveraged in most of the billions of page views we serve.”

RecommendsComment from 3 Nov 2025 in “The Case Against PGVector”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.