News for hackers. Stuff that matters.
Re:Creating a Postgres Foreign Data Wrapper by timClicks on Wednesday January 26, 2022 @02:43PM (#30090638)
I wince a little whenever I see an introductory tutorial for Postgres extensions using C. pgx allows you to write Rust, and has lots of features to make your code type safe https://github.com/zombodb/pgx
Re:Creating a Postgres Foreign Data Wrapper by latenightcoding on Wednesday January 26, 2022 @03:23PM (#30091209)
I wince a little when someone suggests to throw away battle-tested solutions written in C just because someone wrote and unproven alternative in Rust.
Re:Creating a Postgres Foreign Data Wrapper by reltuk on Wednesday January 26, 2022 @03:38PM (#30091429)
Yeah, pgx is quite impressive and is a great set of bindings with very accessible examples, etc. Definitely something to be aware of for people that prefer building things in Rust. Thanks for pointing it out here.