VOOZH about

URL: https://thenewstack.io/postgres-is-now-a-vector-database-too/

⇱ Postgres Is Now a Vector Database, Too - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2024-05-09 07:47:50
Postgres Is Now a Vector Database, Too
podcast,sponsor-amazon-web-services-aws,sponsored-podcast-day-of-podcasting,video,
Data / Databases

Postgres Is Now a Vector Database, Too

The open source pgvector brings vector similarity search into Postgres, said Sirish Chandrasekaran of Amazon Web Services in this episode of The New Stack Makers. 
May 9th, 2024 7:47am by Alex Williams
👁 Featued image for: Postgres Is Now a Vector Database, Too
AWS sponsored this post.

SEATTLE — Bring generative AI and vector capabilities into what customers already use. That’s the story from Amazon Web Services with pgvector, an open source tool that brings vector similarity search into Postgres.

“So think of extensions as plugins,” said Sirish Chandrasekaran, general manager of Amazon relational database services, in this On the Road episode of The New Stack Makers recorded at Open Source Summit North America.

“You can bring your extension, and you can significantly alter the capabilities of Postgres. That’s one of the strengths of Postgres. So what pgvector does, is it allows you to store vector types in Postgres, and it also does something else: similarity search.”

With generative AI, he added, “You’re not looking for exact results, right? That’s not what a [large language model] does. But you’re looking for knowledge that is close. And the concept of similarity search, or approximate nearest neighbor, is what pgvector does really well.”

A Shoutout to the ‘Fantastic’ Developer

Chandrasekaran credited Andrew Kane, who he called “this fantastic developer” for pgvector: “He’s been at it for a few years. And we were the first cloud vendor to partner with him and offer it. It’s always been open source. But we offered it in Aurora and RDS early last year.”

pgvector originally had an indexing scheme called IVFFlat. It’s based on link lists and works well for building indexes fast, Chandrasekaran said.

But its query throughput does not perform as well when looking for higher rates of recall, like the percentage of the results you expect and end up getting, Chandrasekaran said.

With Kane, AWS started working on Hierarchical Navigable Small World (HNSW), which offers a graph-based approach compared to IVFFlat, which pgvector has used. According to the pgvector GitHub page, HNSW has better query performance than IVFFlat in terms of the speed-recall tradeoff, but slower build times and uses more memory.

“A big part of the work has been to make HNSW to be as performant as IVFFlat,” Chandrasekaran said. “It’s a fast-evolving space. So there’s a lot we don’t know. And so we’re just keeping a close ear to the ground on what customers are asking for.

“It’s about scale and performance, the usual things you’d ask and look for in a database. But in the context of vectors. the graph-based approach is what you see customers liking.”

The Advantages of Graphs

Graphs make it easier for customers to look for the nearest neighbors, a pillar of generative AI. The idea is to find similar points to a query, map the points and calculate the distances, which technologists say is an easier approach than complex machine learning algorithms.

Adding graphs creates the opportunity for graph-based, nearest-neighbor algorithms, a newer approach showing promising results.

Still, there’s a lot that we still need to learn.

“We learn a lot from our customers,” Chandrasekaran said. “That’s been one of our defining qualities. And the rate of innovation that we’ve seen in the generative AI space, frankly, from my experience, reminds me of the dot-com boom, like the late ’90s. The internet’s new world of possibilities are endless … and so our goal is to stay humble, stay nimble, listen to our customers, and keep innovating as they ask us to do more.”

Since its inception, Amazon Web Services (AWS) has been the best place for customers to build and run open source software in the cloud. AWS is proud to support open source projects, foundations, and partners.
Learn More
The latest from AWS
Hear more from our sponsor
TRENDING STORIES
Alex Williams is founder and publisher of The New Stack. He's a longtime technology journalist who did stints at TechCrunch, SiliconAngle and what is now known as ReadWrite. Alex has been a journalist since the late 1980s, starting at the...
Read more from Alex Williams
AWS sponsored this post.
SHARE THIS STORY
TRENDING STORIES
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.