Teaching an old dog new tricks: extending Postgres capabilities with Rust

PostgreSQL represents a cornerstone of many modern apps, and yet has the potential to play a much larger role. Its extensibility has always been a core strength and today extensions can be authored in Rust, making it both easier and safer. Let's explore all of this and build our own extension!

Abstract

PostgreSQL represents a cornerstone of many modern apps, and yet has the potential to play a much larger role than that of a simple database. Its extensibility has always been a core strength, and today the pgrx crate allows extensions to author extensions in Rust, making it easier, safer and fun, unlocking much unrealized potential.

In this experience-based, practical session, we will:
- explore Postgres extensibility features and the value they provide;
- introduce the pgrx crate, a comprehensive open source framework to author Postgres extensions in Rust;
- we'll build, test, and deploy a real extension, live on stage.

Finally, we will present a case history where we used a custom Rust PostgreSQL extension to drastically simplify a legacy software codebase, while providing more flexibility and improving query performance to billions of rows per second.

Slides

Video

RustLab is a conference made by Develer.
Develer is a company based in Campi Bisenzio, near Florence. Our motto is : "Technology to give life to your products". We produce hardware and software to create exceptional products and to improve industrial processes and people's well being.
In Develer we have passion for the new technologies and we offer our clients effective solutions that are also efficient, simple and safe for the end users. We also believe in a friendly and welcoming environment where anybody can give their contribution. This passion and this vision are what we've been driven to organize our conference "made by developers for developers".

Subscribe to our newsletter

We hate spam just as much as you do, which is why we promise to only send you relevant communications. We respect your privacy and will never share your information with third parties.
©2024 RustLab | The international conference on Rust in Florence-Design & devCantiere Creativo-Made withDatoCMS