Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposed SF Topic: Deep Postgres Extensions in Rust #92

Open
jeff-davis opened this issue Aug 13, 2019 · 0 comments
Open

Proposed SF Topic: Deep Postgres Extensions in Rust #92

jeff-davis opened this issue Aug 13, 2019 · 0 comments

Comments

@jeff-davis
Copy link

Presented at PGCon 2019: https://www.pgcon.org/2019/schedule/events/1322.en.html

Postgres relies heavily on an extension ecosystem, but that is almost 100% dependent on C; which cuts out developers, libraries, and ideas from the world of Postgres. postgres-extension.rs changes that by supporting development of extensions in Rust. Rust is a memory-safe language that integrates nicely in any environment, has powerful libraries, a vibrant ecosystem, and a prolific developer community.

Rust is a unique language because it supports high-level features but all the magic happens at compile-time, and the resulting code is not dependent on an intrusive or bulky runtime. That makes it ideal for integrating with postgres, which has a lot of its own runtime, like memory contexts and signal handlers. postgres-extension.rs offers this integration, allowing the development of extensions in rust, even if deeply-integrated into the postgres internals, and helping handle tricky issues like error handling. This is done through a collection of Rust function declarations, macros, and utility functions that allow rust code to call into postgres, and safely handle resulting errors.

@jeff-davis jeff-davis changed the title Proposed: Deep Postgres Extensions in Rust Proposed SF Topic: Deep Postgres Extensions in Rust Aug 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant