Introducing pg_pinecone: Open-Source Search for Your Postgres Data - Read the announcement
← All comparisons

Pinecone vs pgvector

Your rows stay in Postgres. The choice is where vector search runs: in pgvector's index, in the pg_pinecone extension inside the same database, or in Pinecone Database, Pinecone's managed service. pgvector adds a vector type and vector indexes to Postgres. It starts to fall short in three places: how much memory the index needs, what happens to your results when you filter, and how well recall holds up as the data changes. pg_pinecone and Pinecone Database take different routes past those limits. Each has limits of its own.

Stay on pgvector when the table is small and mostly static, or when your Postgres host cannot load extensions. Add pg_pinecone, an open-source (Apache 2.0) extension, when you run Postgres 17 or 18 yourself and filtered queries come back short or the HNSW index is too big. Choose Pinecone Database when search outgrows one server. It also runs full-text search with BM25 keyword ranking in the same index as your vectors.

SUMMARY

The short version

pgvector is a reasonable choice when your vector workload is small, mostly static, and sits next to relational data you already keep in Postgres. Keeping everything in one system is an advantage. For a prototype or a modest corpus, it works. It is also the option to use when your Postgres is a managed service that does not offer pg_pinecone, such as Amazon RDS.

pg_pinecone adds a second index type to the same Postgres. It keeps your tables, your vector columns, and your pgvector queries. Its native engine stores a compact code for each vector in clusters instead of a graph. It applies a filter on one column while it searches. In Pinecone's 1-million-vector benchmark the native index was 136 MB against 2.0 GB for pgvector's HNSW index over half-precision vectors. A query filtered to 1 percent of rows returned 0.981 recall in 8.3 ms where HNSW returned 0.924 in 56 ms. It needs Postgres 17 or 18 that you manage yourself. In the same benchmark HNSW was faster at a 10 percent filter.

Pinecone Database is the better fit once the workload grows past one server, changes continuously, or depends on metadata filters across several fields returning complete results. With pg_pinecone, the remote engine moves a table's search to a Pinecone index with one SQL call. Postgres keeps every row. One Pinecone index holds full-text (BM25), dense, and sparse fields. Moving search to Pinecone does not mean adding a separate keyword search engine. The remote engine copies writes in the background, usually within seconds. A query right after a write may not see it.

Postgres also brings decades of operational maturity that Pinecone does not have. You get point-in-time recovery, streaming replication, mature backup tooling, extensive access controls, and a hiring pool that already knows how to run all of it. With pgvector or pg_pinecone's native engine, your vectors stay inside that. Moving search to Pinecone Database means running a second system with its own approach to each of those. For some teams, that trade does not pay off.

BENCHMARK

What we measured

We ran pg_pinecone's native engine and pgvector's HNSW index on the same data and published the results, with the commands to rerun them. The numbers below come from those runs.

136 MB vs 2.0 GB

index size for 1 million 768-dimension vectors, pg_pinecone native against pgvector HNSW over half-precision vectors. HNSW over full-size vectors was 4.1 GB. The table's own full-size vectors take 4.1 GB in either case

1.27 vs 1.71 ms

median unfiltered query at recall 0.95, pg_pinecone native against HNSW over half-precision vectors. At recall 0.99 it was 2.28 ms against 4.65 ms. One client

0.981 vs 0.924

recall for a query filtered to 1 percent of rows, pg_pinecone native in 8.3 ms against HNSW over half-precision vectors in 56 ms. These queries are the hard case for filtering after the search: their closest matches mostly fall outside the filter

12.3 vs 5.1 ms

median query at a 10 percent filter, pg_pinecone native against HNSW over half-precision vectors. HNSW was faster here, at recall 0.922 against 1.000 for pg_pinecone

Dataset: wiki_dpr, 1 million vectors with 768 dimensions, Euclidean distance, 500 held-out queries, 10 results per query, one client. Hardware: one AWS r6id.4xlarge (16 vCPUs, 128 GB of memory). Unfiltered speed, build time, and index size ran on Postgres 17.11 on October 16, 2026, with pgvector 0.8.7 and pg_pinecone built from the code that became release 0.10.0. The filtered runs used Postgres 18.6 and the 0.10.0 release build on October 22. The memory-cap runs used Postgres 17.11 on October 23. pgvector's HNSW ran with m set to 16 and ef_search swept to reach each recall level, with iterative scans in relaxed order for filtered queries. Both variants are in the reports: an index over full-size vectors and an index over half-precision values (halfvec). The cards compare against halfvec, the faster of the two. Where pgvector did better: at a 10 percent filter HNSW was faster, 5.1 ms against 12.3 ms, at lower recall. When filtered queries come from inside the filtered group, such as a tenant searching its own data, HNSW returned full results at 0.98 to 0.99 recall in 3.2 ms. pg_pinecone returned 1.000 in 8.5 to 12.8 ms. pg_pinecone's index build peaked at about 7.9 GB of memory, against 5.4 GB for the halfvec HNSW build. With half-precision vectors stored in the table, pgvector's total footprint is 3.7 GB, against 4.3 GB for pg_pinecone, which keeps full-size vectors in the table. Every latency figure is from one client on a table with no writes running. The reports also include a 16-client throughput run. The runs predate pg_pinecone 0.11.0.

Source: Introducing pg_pinecone: Open-Source Search for Your Postgres Data. Results depend on the dataset, query pattern, and configuration. Test your own workload before deciding on these numbers.

FIT

When to pick which

Each system is the better choice for some workloads. These lists say which.

Choose Pinecone Database when

  • You need keyword search with BM25 ranking in the same index as your vectors, along with sparse retrieval, reranking, or embedding generation.
  • Your corpus grows past what one Postgres server can hold, or you cannot predict how large it will get.
  • You filter on several metadata fields, or on more than one equality condition. Every query has to return the full number of results you asked for.
  • Vector inserts, updates, and deletes keep arriving after the initial load.
  • You would rather not own index sizing, index rebuilds, and query-plan tuning.

Choose pg_pinecone when

  • You run Postgres 17 or 18 yourself with superuser access. You want search to stay inside that database, with no second system and no account.
  • Your queries filter on one column with an equals condition, such as a tenant ID. HNSW returns fewer results than your LIMIT.
  • The HNSW index has grown large or builds slowly. In Pinecone's benchmark the native index was 136 MB and built in 45 seconds, against 2.0 GB and 62 seconds for HNSW over half-precision vectors.
  • You want to keep your vector columns and pgvector queries as they are. If a table outgrows the server, you can move it to Pinecone later with one SQL call.

Choose pgvector when

  • Your Postgres is a managed service that does not offer pg_pinecone, such as Amazon RDS, or you cannot get superuser access. pgvector is the option that runs there.
  • You run a Postgres version older than 17. pg_pinecone runs on 17 and 18.
  • Your corpus is small and mostly static, with an index that fits in the memory you already pay for. Under those conditions HNSW on Postgres performs well. It is also simple to operate.
  • Your filtered queries come from inside the filtered group, such as one tenant searching its own data. In Pinecone's benchmark HNSW returned full results there at 0.98 to 0.99 recall in 3.2 ms.
  • Vector search is a secondary feature next to relational queries. The extension you already run meets your latency and recall targets.
COMPARISON

Feature by feature

How Pinecone Database, pg_pinecone, and pgvector differ on the points that usually decide it.

Deployment modelPinecone DatabaseYou create an index and write to it. Data sits in object storage, Pinecone runs the servers that answer queries, and you never choose an instance size, a node count, or a cluster layout.pg_pineconeAn open-source Postgres extension. The native engine runs inside your Postgres with no account. The remote engine sends a table's search to a Pinecone index.pgvectorAn extension you install into a Postgres instance you run or rent. You size it.
Postgres versions and hostingPinecone DatabaseAny application that can call the Pinecone API, whatever database sits beside it.pg_pineconePostgreSQL 17 and 18 that you manage yourself, because installing it needs superuser access. Amazon RDS does not support it.pgvectorPostgres 13 and later. Managed Postgres services such as Amazon RDS list it.
Joins and transactionsPinecone DatabaseSearch runs outside Postgres. A vector query cannot join against your tables in one statement. Your application gets IDs and scores and fetches the rows.pg_pineconeOn the native engine the search is an ordinary Postgres index scan. It joins against your tables and shares a transaction with them. On the remote engine writes reach Pinecone in the background, usually within seconds. A query right after a write may not see it.pgvectorVectors and rows sit in one database. A vector query joins against your tables and runs in the same transaction.
Index memory sizingPinecone DatabaseYou do not size index memory. You pay for the data you store and the operations you run.pg_pineconeThe native index is small. For 1 million 768-dimension vectors it was 136 MB. The full vectors stay in your table, which keeps its own size. The engine reads them to re-score the best candidates.pgvectorThe HNSW index should fit in working memory. In Pinecone's April 2024 benchmark across four public datasets, index memory ran between 1.2x and more than 5x the raw dataset size. A half-precision (halfvec) index is half the size: 2.0 GB against 4.1 GB for 1 million 768-dimension vectors.
Behavior when the index exceeds memoryPinecone DatabaseNot applicable. Vectors live on object storage and are cached on the query servers Pinecone runs.pg_pineconeUnder a 4 GB memory cap, queries on the native index stayed within 3 percent of their uncapped speed once the cache was warm. The first pass, before the cache filled, ran 1.9 times slower.pgvectorThe index build spills to disk. In the 2024 benchmark, build throughput dropped by more than 10x past that point. Under a 4 GB cap in Pinecone's 2026 test, queries on the 4.1 GB full-size index ran 2.8 to 3.8 times slower at recall 0.95 to 0.99. The 2.0 GB halfvec index did not slow down.
Metadata filteringPinecone DatabasePinecone applies filters during the search itself. A filtered query returns as many results as you asked for, as long as enough records match the filter.pg_pineconeWith a filter column set, the native engine applies an equals condition on that one column during the search. A range or a second column is checked on each batch the index returns. The scan keeps going until the query has enough rows.pgvectorBy default, Postgres applies the filter after the index scan. A selective filter can therefore return fewer results than you asked for. Since 0.8.0 an opt-in iterative scan keeps searching until it has enough matches, up to a cap on how many index entries it visits.
Query path predictabilityPinecone DatabaseEvery query takes the same retrieval path.pg_pineconeThe Postgres planner decides whether a query uses the index, as with any Postgres index. Below 10,000 rows a native index compares every row, which is exact, until you rebuild it with REINDEX.pgvectorThe Postgres planner chooses between the vector index, a GIN index (an inverted index Postgres can use for filters), and a sequential scan. Queries that look alike can take different paths.
Recall under changing dataPinecone DatabasePinecone re-optimizes the index continuously in the background. There is no re-indexing step.pg_pineconeNew rows join the nearest cluster and are searchable at once. After a large change, such as a bulk load that doubles the table, run REINDEX or turn on automatic maintenance to rebalance the clusters.pgvectorIVFFlat partitions are set once, when the index is built. In the 2024 benchmark, recall fell as data arrived after the index was built.
Scaling modelPinecone DatabaseBillions of vectors. Automatic on the on-demand tier, where you never pick a shard or replica count. On Dedicated Read Nodes, which are capacity you provision, shards and replicas are set by hand today.pg_pineconeThe native engine is limited to one Postgres server. When a table outgrows it, the remote engine moves that table's search to Pinecone with one SQL call.pgvectorLimited by the memory of one instance. Growing past it means a bigger instance or sharding that you build yourself.
Embedding dimensionsPinecone DatabaseDense vectors can have up to 20,000 dimensions. You do not have to compress (quantize) them yourself to get there.pg_pineconeThe native engine has a width cap set by its page format and refuses a wider column when you create the index. The remote engine takes wider columns.pgvectorHNSW indexes stop at 2,000 dimensions. The limit is hard-coded in the pgvector source. No setting changes it. A 3,072-dimension model cannot be indexed at full precision. The ways around it are halfvec (a half-precision vector type), binary quantization, or reducing the dimensions.
Multi-tenancyPinecone DatabaseOne index holds a namespace per tenant, with nothing to provision for each new tenant. The documented limit is 100,000 namespaces per index on Standard and 1,000,000 on Enterprise. Dedicated Read Nodes support one namespace per index today. For now you cannot combine them with a design that keeps many tenants in one index.pg_pineconeOn the native engine a filter column on the tenant ID applies the tenant filter during the search. On the remote engine a partition column gives each tenant its own Pinecone namespace. Every query has to name the tenant. pg_pinecone warns when a table has more than 1,000 distinct tenant values.pgvectorA tenant column with a filter, a table per tenant, or a schema per tenant. You choose the design and build its indexes yourself. The filtering behavior described above applies to the tenant-column design.
Running it in your own cloudPinecone DatabaseBring your own cloud on AWS, Azure, and GCP.pg_pineconeIt runs wherever your self-managed Postgres runs. The native engine makes no network calls.pgvectorAlready the case. pgvector runs inside the Postgres you operate. That is the strongest form of running in your own cloud and a good reason to stay.
Hybrid and sparse retrievalPinecone DatabaseDense vectors, sparse vectors, and full-text search with BM25 keyword ranking. Dense and sparse vectors combine in one query. Full-text and dense combine as a text-match filter on a dense search, or as two searches merged in your application.pg_pineconeFull-text search with BM25 ranking runs on a Pinecone index that pg_pinecone keeps in sync with your table. It needs an API key and a server setting. Hybrid works as it does on Pinecone: a text-match filter on a dense search, or two searches you merge with reciprocal rank fusion in your SQL.pgvectorA sparsevec type and a bit type alongside dense vectors, plus Postgres full-text search for keyword matching. You write the code that merges their results into one ranked list.
Licensing and sourcePinecone DatabaseCommercial managed service.pg_pineconeOpen source under Apache 2.0. The remote engine, full-text search, embed(), and rerank() call Pinecone's hosted service.pgvectorOpen source under the PostgreSQL License. Postgres itself is open source too.
Embeddings and rerankingPinecone DatabasePinecone hosts embedding and reranking models. With integrated embedding, Pinecone embeds your text when you write to or search an index. Standalone embed and rerank endpoints work without an index.pg_pineconeembed() and rerank() are SQL functions that call Pinecone's hosted models. They need an API key. Pinecone's free tier covers a first build.pgvectorBring your own models and pipeline.
Pricing modelPinecone DatabaseUsage based. You pay for storage and the reads and writes you run.pg_pineconeNo license fee. The native engine uses the Postgres server you already pay for. The remote engine, embedding, reranking, and full-text search are billed as Pinecone usage.pgvectorYou pay for the instance and storage you provision, whether or not the instance is busy.

pg_pinecone needs a Postgres you manage

Installing pg_pinecone needs superuser access. It runs on PostgreSQL 17 and 18 servers you manage yourself, on a virtual machine or in Docker. Managed Postgres services generally run only the extensions their provider ships. Amazon RDS does not support pg_pinecone. Whether another provider offers it is that provider's decision. Check its extension list.

That is the main reason to stay on pgvector today. When managed Postgres providers advertise vector support, pgvector is what they mean. The remote engine and full-text search also need pg_pinecone loaded at server start, which takes a restart. They also need a Pinecone API key.

An HNSW index has to fit in memory

pgvector builds its HNSW graph in memory. To keep builds and queries fast, that graph needs to fit in the memory you have provisioned. How much it needs depends on the data itself as well as its size on disk.

In Pinecone's April 2024 benchmark, index memory ranged from about 1.2x the raw dataset size on one dataset to more than 5x on others. No simple formula tells you where your data falls before you load it. If you guess low, the index spills to disk. In that benchmark, build throughput then fell by more than 10x.

pgvector documents two ways to shrink the index. The halfvec type stores each dimension in two bytes instead of four. An expression index over binary_quantize() shrinks it further. You rerank the results against the original vectors to win back the recall that quantization loses. In Pinecone's 2026 test at 1 million 768-dimension vectors, the halfvec index was 2.0 GB and did not slow down under a 4 GB memory cap. The full-size index was 4.1 GB and ran 2.8 to 3.8 times slower at recall 0.95 to 0.99. If you are on pgvector, try halfvec before you conclude the index will not fit.

The trouble shows up after launch. An application ships with acceptable latency, data accumulates, the index outgrows the memory it was given, and query latency degrades sharply. The fix at that point is a larger instance, more quantization, or sharding the database. The choices stay with you: the representation, how deep to rerank, and rechecking recall as the data changes.

pg_pinecone's native engine takes a different route. It stores one compact code per vector in clusters instead of a graph. The index was 136 MB at 1 million vectors. Its build used more peak memory than the halfvec HNSW build in the same report. The table's full-size vectors still take their 4.1 GB, because the engine reads them to re-score candidates. Pinecone Database chooses and adjusts quantization itself while it re-optimizes the index in the background.

Filtering after the search can cut results short

Most retrieval applications filter, by tenant, document set, date range, or language.

pgvector's HNSW index does not apply those filters while it searches the graph. Postgres searches the vector index first, then applies the WHERE clause to what comes back. When the filter is selective, Postgres throws away most of the candidates and the query returns fewer results than you asked for. One query in Pinecone's 2024 test set returned nothing at all. Raising the candidate count to its maximum brought back a single result out of ten.

A GIN index lets Postgres filter first and then rank, which works when the planner chooses it. In the same test set, the planner sometimes used the vector index instead and returned partial results. In another case it skipped both indexes and ran a sequential scan that took several seconds. Queries that looked alike took different paths.

pgvector has since added a mitigation. Version 0.8.0, released in October 2024 after the benchmark above, introduced iterative index scans. When a filtered query comes up short, pgvector can keep scanning the index until it has enough matches. It is off until you enable it per session with the hnsw.iterative_scan setting. Because it stops at a configurable cap on how many index entries it visits, it cannot guarantee a full result set. Its relaxed-ordering mode gives up exact distance ordering to get better recall. The same release also improved the planner's cost estimates for choosing an index when a query filters.

pg_pinecone's native engine and Pinecone Database both apply the filter during the search. Neither takes a setting to tune. On the native engine the filter is one column with an equals condition, chosen when you create the index with filter_column. A range or a second condition is checked on each batch the index returns. The scan keeps going until it has enough rows. Pinecone Database accepts filters across all of a record's metadata fields.

In Pinecone's 1-million-vector test, queries filtered to 1 percent of rows returned 0.981 recall from the native engine in 8.3 ms. HNSW with iterative scans returned 0.924 in 56 ms and did not reach 0.95 at ef_search values from 40 to 160. Those queries were the hard case for filtering after the search, because their closest matches mostly sat outside the filter. When a query comes from inside the filtered group, HNSW also returned full results, at 0.98 to 0.99 recall in 3.2 ms. The native engine returned 1.000 in 8.5 to 12.8 ms. At a 10 percent filter, HNSW was faster on the hard case too, 5.1 ms against 12.3 ms, at recall 0.922 against 1.000.

Pinecone Database has caveats of its own here. The claim above describes how the search works. We have published one measurement behind it. In our benchmark against OpenSearch on 10 million vectors, Pinecone's filtered queries found an average of 98.9% of the true 10 nearest matches, against 99.8% for OpenSearch. We have not published recall at each level of filter selectivity, the view that would show where filtering starts to cost accuracy. Pinecone filters also have limits: at most 10,000 values in an $in or $nin list and at most 40 KB of metadata per record. Run your real filters against each system before you decide.

Cluster indexes save memory but lose recall as data changes

pgvector's other index type, IVFFlat, needs far less memory than HNSW. It clusters vectors into partitions when the index is built.

Those partitions reflect the data that existed at build time. Vectors added later go into partitions that were drawn without them. In Pinecone's 2024 tests, recall dropped on every dataset once the data had changed since the initial build. Getting it back means rebuilding the index.

That rules IVFFlat out for most production retrieval, where documents are added and updated all the time.

pg_pinecone's native engine also groups vectors into clusters when you build the index. The same caution applies to it. New rows join the nearest cluster and are searchable at once. The build calibrates its search to a target recall. After a large change, such as a bulk load that doubles the table or new data unlike what the index was built on, run REINDEX or turn on automatic maintenance to rebalance the clusters. The benchmark above does not measure recall after the data changes.

Most vector benchmarks do not look like production

Published vector benchmarks tend to query a frozen corpus one client at a time. HNSW earns its good results on that test. Most applications serve concurrent traffic against a corpus that is still being written to.

Under that load, two things change. Adding a vector to an HNSW graph means running a series of approximate searches through the graph's layers. Writes therefore compete with queries for the same memory and CPU. On a single Postgres instance, queries, ingest, index rebuilds, and autovacuum all contend for that one machine. Read replicas can take some read traffic off the primary, but you then have replicas to run and replication lag to deal with.

The slowdown hits the slowest requests while the median still looks fine. A healthy p50 (median latency) can sit alongside a p99 (the slowest 1 percent of requests) that has climbed into seconds. Users feel those slow requests. Pinecone separates storage from compute and gives reads their own capacity. Ingest does not compete with queries.

The pg_pinecone benchmark above has the same limit. It measured one client on a table with no writes running, plus a 16-client run for throughput. It does not measure writes alongside queries for either system. The native engine runs on the same Postgres server as the rest of your application. It shares that server's CPU and memory with everything else on it.

What the operational difference costs

Keeping vectors in Postgres saves you a second system, but running pgvector at scale still takes work. You predict index memory, watch for the point where it stops fitting, choose between two index types that fail in different ways, add GIN indexes to make filters behave, and check query plans when results look wrong.

pg_pinecone's native engine removes some of that work. It calibrates its search to a target recall when it builds the index. It filters inside the index. It is still software you install and upgrade on a Postgres you operate: an upgrade is an installed release, a restart, and ALTER EXTENSION UPDATE. pg_pinecone launched on October 27, 2026. Pinecone maintains it and reviews every pull request.

Pinecone's April 2024 benchmark also modeled direct cost across the four datasets. On ongoing monthly cost, Pinecone Serverless came out between 1.5x and 2.9x cheaper. Including the one-off cost of the initial upsert, it came out between 1.1x and 2.2x cheaper. Those figures exclude the cost of operating Postgres itself.

You also pay for idle capacity. A Postgres instance sized for peak index memory is paid for around the clock, whether or not anyone is querying it. By default, Pinecone charges for what you query. Where traffic is sustained enough to justify provisioned capacity, Dedicated Read Nodes trade per-query cost for fixed read capacity. Pinecone has published three production workloads that moved to Dedicated Read Nodes: 77 percent lower cost on a billion-vector index at low query volume, 83 percent on a latency-sensitive workload, and 97 percent on one with sustained high QPS (queries per second). The pg_pinecone native engine adds no license fee and no new bill. The remote engine, embedding, reranking, and full-text search are billed as Pinecone usage.

Moving from pgvector

Adding pg_pinecone keeps your tables and your queries. Install the extension and build a native index over your vector column with pinecone.create_index. A pgvector index you already have keeps serving queries until you drop it. You can switch back at any time. When a table outgrows one server, pinecone.set_engine('docs', 'remote') copies its vectors to a Pinecone index in the background while queries keep using the native index. A table of a million rows takes up to about an hour to copy at the default settings. To move vector search out of Postgres entirely, read the vectors and their metadata from Postgres and upsert them into a Pinecone index. For a large table, bulk import from object storage saves you from sending everything through the API one batch at a time.

Talk to an engineer or read how Pinecone works.

Frequently asked questions

Should I keep Postgres if I move vectors to Pinecone?

Usually yes. Postgres stays the system of record for relational and transactional data. Pinecone holds the vectors and the metadata you filter on at query time. It returns IDs that your application maps back to Postgres rows. With pg_pinecone's remote engine, a background worker does the sync and your queries stay SQL.

Is Pinecone a good alternative to pgvector?

For vector search, yes, in two ways. pg_pinecone adds Pinecone's search engine to your Postgres. Pinecone Database runs search outside Postgres. If your corpus is small and mostly static and the index fits in memory you already pay for, pgvector is a good answer and staying put is reasonable. Moving makes sense when you hit one of three limits: index memory you have to predict in advance, filters that Postgres applies only after the vector search, and recall that drops as the data changes.

Is comparing Pinecone to Postgres the same as comparing it to pgvector?

For vector search, mostly. Postgres has no built-in vector type. pgvector is the extension that adds one. It is what managed Postgres providers mean when they advertise vector support. pg_pinecone is a second extension that indexes the same vector columns. A comparison with Postgres now covers three setups: pgvector, pg_pinecone, and Pinecone Database.

What is pg_pinecone?

pg_pinecone is an open-source (Apache 2.0) Postgres extension from Pinecone. It indexes the vector columns you already have, including pgvector columns. Your SQL stays the same. A table uses one of three engines: pgvector, native (the default, which runs inside your Postgres with no account), or remote (which sends the table's search to a Pinecone index). It runs on PostgreSQL 17 and 18 that you manage yourself.

Do I need a Pinecone account to use pg_pinecone?

Not for vector search on the native engine, which makes no network calls. You need an API key for the remote engine, full-text search with BM25, embed(), and rerank(). They call Pinecone's hosted service. Pinecone's free tier covers a first build.

Does pg_pinecone work on Amazon RDS or Supabase?

Installing pg_pinecone needs superuser access. It runs on Postgres servers you manage yourself, on a virtual machine or in Docker. Amazon RDS does not support it. Whether another managed provider offers it is that provider's decision. Check its extension list. pgvector is the extension those services advertise.

pg_pinecone or pgvector: which should I use?

Keep pgvector if your Postgres host cannot load pg_pinecone, if you run a version older than 17, or if your table is small and its HNSW index fits in memory. Try the native engine if your queries filter on one column such as a tenant ID, or if the HNSW index is large or slow to build. In Pinecone's 1-million-vector test the native index was 136 MB against 2.0 GB for HNSW over half-precision vectors. It built in 45 seconds against 62. HNSW was faster at a 10 percent filter and when queries came from inside the filtered group. A table can switch back: drop the native index and create the pgvector one again.

Is pgvector good enough for production?

It can be, for small and mostly static vector workloads that sit next to relational data. The limits appear as the corpus grows and changes. The HNSW index needs to fit in memory to stay fast. Because Postgres applies metadata filters after the search, a filtered query can return fewer results than you asked for. The IVFFlat index loses recall as the data changes after the index is built.

Why does pgvector return fewer results than I asked for?

pgvector's HNSW index does not check metadata filters while it searches. Postgres finds the nearest neighbors first, then applies the WHERE clause to those candidates. If the filter is selective, it removes most of them and you get fewer results than you asked for. There are two mitigations. A GIN index on the filtered column can make Postgres filter first, when the planner chooses that path. Since version 0.8.0 you can also turn on iterative index scans with the hnsw.iterative_scan setting. They keep scanning until they find enough matches, up to a configurable cap on how many index entries they visit. Both are opt-in. Neither guarantees a complete result set. pg_pinecone's native engine applies an equals filter on one column during the search.

How much memory does a pgvector HNSW index need?

It depends on what the data looks like as well as how much of it there is. In Pinecone's published April 2024 benchmark the index needed roughly 1.2x the raw dataset size on one dataset and more than 5x on others. Because the ratio varies, it is hard to predict how much memory you need before you load the data. Storing the index as halfvec cuts it roughly in half: 2.0 GB against 4.1 GB for 1 million 768-dimension vectors.

Can I migrate from pgvector to Pinecone?

Yes, in two ways. To stay in Postgres, replace a table's pgvector index with pg_pinecone's native index. You can move the table to the remote engine later with pinecone.set_engine. To move vector search out of Postgres, read the vectors and their metadata out and upsert them into a Pinecone index. Pinecone also supports bulk import from object storage for large datasets. Your Postgres database stays in place for relational data either way.

What about pgvectorscale, DiskANN, or binary quantization?

They help. Try them before you migrate anything. StreamingDiskANN, pgvectorscale's disk-based index, reduces the memory pressure that breaks plain HNSW at scale. Quantization frees up memory at some cost to recall. Before you make pgvectorscale a production dependency, check its commit history. Since its last functional release in November 2025, the commits have been a copyright-year bump and a style fix. Its own README still describes the project as early stage. None of these options moves the work off your team. You still choose an algorithm, tune its parameters, size an instance around it, and re-tune as the data changes. Meanwhile queries, ingest, and reindexing compete for the same machine.

Can I still join vector results against my relational tables?

With pg_pinecone's native engine, yes. The search is an ordinary Postgres index scan. It joins against your tables and shares a transaction with them. On the remote engine, writes reach Pinecone in the background. A query right after a write may not see it. Full-text search results from the remote engine also include IDs and scores for rows your row-level security policies hide. Your join drops those rows, but anyone with SELECT on the table can observe the IDs and scores. With Pinecone Database through its API, you query outside SQL. You get IDs and scores and fetch the rest of each record from Postgres, which most applications already do. If your retrieval needs a transactional join in one statement, use pgvector or pg_pinecone's native engine.

What about the benchmarks showing pgvector matching Pinecone at lower cost?

The two most-cited ones, from October 2023 and June 2024, both ran against Pinecone's pod-based indexes, a product line that has since been retired. Neither tested serverless. Neither could have tested Dedicated Read Nodes, which reached general availability in April 2026. For any benchmark in this space, check which product it measured and when. The same check applies to ours. Our cost figures are from April 2024 and predate pgvector 0.8.0, the release that added iterative index scans.

Is Pinecone cheaper than running pgvector?

In Pinecone's published April 2024 benchmark across four datasets, Pinecone Serverless was 1.5x to 2.9x cheaper on ongoing monthly cost, and 1.1x to 2.2x cheaper including the one-off initial upsert. The pgvector side was priced as the instance required to keep p95 query latency under 100ms, plus storage. That comparison excludes the staff cost of operating Postgres. Your own result depends on your data volume and query rate. Idle capacity usually matters more. An instance sized for peak index memory is paid for around the clock. One more set of figures compares two ways of running Pinecone. pgvector is not part of it. Three published production workloads that moved from on-demand querying onto Dedicated Read Nodes cut cost by 77, 83, and 97 percent. Two limits are easy to miss when those savings are quoted alone. Dedicated Read Nodes support one namespace per index today. For now you cannot combine them with a design that keeps many tenants in one index. On Dedicated Read Nodes, shards and replicas are set by hand today.

Who maintains pg_pinecone and where do I get help?

Pinecone maintains pg_pinecone under Apache 2.0 at github.com/pinecone-io/pg_pinecone and reviews every pull request. Ask questions in the Pinecone Discord community and report bugs in GitHub issues. For a problem with a Pinecone index that the remote engine or full-text search uses, contact Pinecone Support.

Sources (9)

Claims about pgvector last checked against its own documentation on . Competitors ship changes we do not control. If something here is out of date, tell us and we will correct it.

Try it on your own workload

Create your first index for free, then pay as you go when you are ready to scale.