Lurker News
And what made it so good?

Was there someone enforcing good practices top down? Just being in a group of great engineers? Or something else?

Comments (454) 104 threads

Show all comments

Showing thread 11 of 104

ttfkam3 replies#
Postgres. I don't code in C if I can avoid it, since it often feels like an awful lot of extra typing while still having to worry about memory safety. But the Postgres codebase is extraordinarily well organized and respects the humans that work with it with its intelligent handling of memory and judicious use of macros.

I consider the core Postgres codebase to be the gold standard in development even though it's in a language I do not prefer to write in if given the choice.
Shout out to the pgrx folks. You're awesome! https://github.com/pgcentralfoundation/pgrx

rurp#
That is nice to hear, albeit unsurprising. Their public documentation is some of the best that I have worked with. Postgres is such an impressive project overall.
shutupnerd00004 replies#
This codebase is 99.6% Rust according to GitHub.
radimm#
That’s PGRX - not PostgreSQL
ttfkam#
As I said, I don't like coding in C.
HaZeust#
He's referencing pgrx:

https://github.com/pgcentralfoundation/pgrx
To be fair pgrx was mentioned in OP under a positive light, and OP did say he likes avoiding coding in C, so it was something to bring up.

jokoon#
I laughed at this comment

sorry

niobe#
Not only that, one of the best documented projects out there, clear, comprehensive, consistent and findable.