Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more! Learn more →
Top 23 Rust Postgresql Projects
-
hyperswitch
An open source payments switch written in Rust to make payments fast, reliable and affordable
-
Sevalla
Deploy and host your apps and databases, now with $50 credit! Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!
-
neon
Neon: Serverless Postgres. We separated storage and compute to offer autoscaling, code-like database branching, and scale to zero.
Neon (serverless Postgres)
-
cube.js
📊 Cube’s universal semantic layer platform is the next evolution of OLAP technology for AI, BI, spreadsheets, and embedded analytics
Project mention: Getting AI to write good SQL: Text-to-SQL techniques explained | news.ycombinator.com | 2025-05-16the short answer: use a semantic layer.
It's the cleanest way to give the right context and the best place to pull a human in the loop.
A human can validate and create all important metrics (e.g. what does "monthly active users" really mean) then an LLM can use that metric definition whenever asked for MAU.
With a semantic layer, you get the added benefit of writing queries in JSON instead of raw SQL. LLM's are much more consistent at writing a small JSON vs. hundreds of lines of SQL.
We[0] use cube[1] for this. It's the best open source semantic layer, but there's a couple closed source options too.
0 - https://www.definite.app/
1 - https://cube.dev/
-
sqlx
🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, and SQLite. (by launchbadge)
// https://github.com/launchbadge/sqlx/issues/367#issuecomment-...
-
-
risingwave
Real-time event streaming platform. Streaming CDC, stream processing, low-latency serving, and Iceberg management.
Project mention: RisingWave: Simplify Your Stream Processing with this Game-Changing Platform | dev.to | 2025-08-17View the Project on GitHub
-
paradedb
ParadeDB is a modern Elasticsearch alternative built on Postgres. Built for real-time, update-heavy workloads.
ParadeDB Search and Analytics. Search pg_search (ParadeDB's rust-based version) Previously named pg_bm25. This is huge and it takes a long long time to compile! Adds a ton of Lucene-like features, based on , a Rust-based Lucene alternative. Still doesn't provide a text-based query parser. Analytics pg_analytics This has been deprecated, due to refocus on pg_search, even for analytics. Part of ParadeDB.
-
InfluxDB
InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
-
materialize
Real-time Data Integration and Transformation: use SQL to transform, deliver, and act on fast-changing data. (by MaterializeInc)
Did I miss in the article where OP reveals the magic database that actually does this?
3rd party solutions like https://readyset.io/ and https://materialize.com/ exist specifically because databases don’t actually have what we all want materialized views to be.
-
readyset
Readyset is a MySQL and Postgres wire-compatible caching layer that sits in front of existing databases to speed up queries and horizontally scale read throughput. Under the hood, ReadySet caches the results of cached select statements and incrementally updates these results over time as the underlying data changes.
Project mention: Readyset is a MySQL and Postgres wire-compatible caching layer | news.ycombinator.com | 2025-08-25 -
-
Yeah, they would often claim that C API is at fault, but believe it or not, blaming Rust just as much. I've had an interesting discussion with pgrx people: https://github.com/pgcentralfoundation/pgrx/issues/1897#issu... to quote @workingjubilee
> Rust has formally rejected the notion that any function can return twice. Even LLVM has no special knowledge of the name of "sigsetjmp" or "setjmp", only that some functions can return twice.
> Thus, when you call sigsetjmp or setjmp from Rust, Rust doesn't believe that you called a function that can return twice. The Rust compiler refuses to annotate it with the required LLVMIR annotation. Thus LLVM sees a call to sigsetjmp that it believes cannot return twice... it's just an ordinary function that someone named "sigsetjmp" because they have a sense of humor. What LLVM does next is between itself and whatever gods that compilers believe in, and we have no more voice in such a matter.
In this particular case, it's hardly the fault of a "C wrapper."
-
i've been working on a database management tui called rainfrog (https://github.com/achristmascarl/rainfrog). it supports postgres, mysql, and sqlite, and we recently added several new features such as:
-
-
Zero-downtime Postgres upgrades have been kind of normalized, at least in the environments I have been exposed to, with pgcat
https://github.com/postgresml/pgcat
-
sql-studio
SQL Database Explorer [SQLite, libSQL, PostgreSQL, MySQL/MariaDB, ClickHouse, DuckDB, Microsoft SQL Server]
-
Project mention: Modern Web Development Sucks? How PostgreSQL Can Replace Your Tech Stack | dev.to | 2025-03-05
Want a GraphQL API without the hassle of setting up Apollo Server or Hasura? With the pg_graphql extension, PostgreSQL itself becomes your GraphQL backend—no extra servers, no complex configurations, just pure SQL.
-
Project mention: fd: A simple, fast and user-friendly alternative to 'find' | news.ycombinator.com | 2025-03-19
-
martin
Blazing fast and lightweight PostGIS, MBtiles and PMtiles tile server, tile generation, and mbtiles tooling.
Martin has a tile cache, which probably makes a difference: https://github.com/maplibre/martin/pull/1105
-
Some cool scaling stuff [0] [1] coming out for pg lately. Looking forward to seeing what PS builds here, I've been a big fan for awhile.
[0]: https://supabase.com/blog/multigres-vitess-for-postgres
[1]: https://pgdog.dev
-
Project mention: Why VPS Rocks for Quick Deployments: My Story + Build an LLM-over-DNS agent in Under 30 Mins! | dev.to | 2025-08-13
hey folks! were there any changes to the message apis yesterday? streaming doesn't seem to be working as intended. maybe github.com/devflowinc/trieve/pull/1999/files?
-
I use a fork of sqlx in SQLPage [1]. I think my main complaint about it is runtime errors (or worse, values decoded as garbage) when decoding SQL values to the wrong rust type.
* [1] https://sql-page.com/
-
Project mention: An easy-to-use, zero-downtime schema migration tool for Postgres | news.ycombinator.com | 2025-05-28
-
Project mention: Pg_mooncake: Columnstore Mirror of Postgres Tables | news.ycombinator.com | 2025-07-22
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Rust Postgresql discussion
Rust Postgresql related posts
-
Materialized views are obviously useful
-
The Equality Delete Problem in Apache Iceberg
-
RisingWave: Simplify Your Stream Processing with this Game-Changing Platform
-
Database Setup for Smart Village Project: A Complete Windows Guide
-
Why VPS Rocks for Quick Deployments: My Story + Build an LLM-over-DNS agent in Under 30 Mins!
-
RisingWave v2.5: Key Enhancements to the Real-Time Event Streaming Platform
-
Writing a storage engine for Postgres: an in-memory Table Access Method
-
A note from our sponsor - Sevalla
sevalla.com | 1 Sep 2025
Index
What are some of the best open-source Postgresql projects in Rust? This list will help you:
# | Project | Stars |
---|---|---|
1 | hyperswitch | 25,950 |
2 | neon | 19,573 |
3 | cube.js | 18,827 |
4 | sqlx | 15,567 |
5 | diesel | 13,592 |
6 | risingwave | 8,296 |
7 | paradedb | 7,691 |
8 | materialize | 6,092 |
9 | readyset | 5,074 |
10 | Replibyte | 4,293 |
11 | pgrx | 4,141 |
12 | rainfrog | 4,034 |
13 | rust-postgres | 3,770 |
14 | pgcat | 3,632 |
15 | sql-studio | 3,273 |
16 | pg_graphql | 3,177 |
17 | qsv | 3,079 |
18 | martin | 2,921 |
19 | pgdog | 2,586 |
20 | trieve | 2,463 |
21 | SQLPage | 2,282 |
22 | reshape | 1,785 |
23 | pg_mooncake | 1,635 |