New Blog, New Contribution Statistics
As many of you know, I’ve been doing mostly-annual blog posts about code contribution statistics for many years now, which has quite frankly been an awful lot of work. It got a lot easier a few years ago because PostgreSQL commit messages began crediting people via trailers rather than free-form text, which meant that a lot of the counting up of who did what could be automated. However, it was still pretty time-consuming.
But with more modern tooling and LLM assistance, I’ve now figured out a way to make it much less time-consuming, and that in turn lets me show better statistics, updated more frequently, than what I’ve ever been able to do before. The new system has two main pieces.
The first part is a public GitHub repository - pg-code-contributions - that
contains all the data used to construct the statistics. It largely agrees with
what I’ve posted previously, except that I believe the new version is more
accurate. The repository has a GitHub Action that runs every night and adds
new commits to the data automatically, so we now essentially have
contribution statistics that are updated daily instead of once a year.
Importing the pgsql-hackers email is something that I still need to do
manually, but it’s less work now and produces more accurate answers. I might
be able to automate this part in the future, too. Anyway, this repository
handles the data gathering: it has scripts that can export the final view of
the data as SQL that you can load directly into a PostgreSQL instance, or as
JSON.
The second part is on this web site.
https://rhaas.dev/projects/contributions/ uses the JSON export to show
all the data as HTML. You can see the updated data for the previous
years, or what’s been collected for 2026 so far. You can also drill down
and see where the numbers are coming from. That was possible before,
because I always published a dump of my database, but that was kind of a
nuisance; now, you can just click around and look at things. This
regularly updates from the pg-code-contributions repository, so it
should stay fairly up to date.
There are two new views of the data, too. Before, just because of the amount of work involved, I only counted first authors and not later authors or any other type of credit in the commit message. Now, there’s a “Non-Author Mentions” view, which lets you see all the people who are prolific reviewers and reporters of issues. Also, the “Authors” view now counts lines of code contributed in two different ways. “Lines (1st)” credits all the new lines of code to the primary author, and “Lines (share)” divides them up, giving the largest number to the primary author and then fewer to each other author. In most cases, this doesn’t seem to make a huge difference; generally, it tends to make committers look like they did more relative to other people; occasionally, when a large patch has multiple authors, it can produce big swings.
For more details on how all this works, please see the README in the
code contributions repository linked above. If you find errors, please
feel free to open issues or pull requests on GitHub, and I’ll merge them
if they look good. Again, and as always, I have never believed that these
contribution statistics were the last word on contribution to the PostgreSQL
community. They only cover code, they only cover PostgreSQL itself, and
judging anyone’s productivity only by lines of code or commit count or
email count is a terrible idea, because not all commits, emails, or lines
of code take the same amount of effort, or deliver the same value.
Nonetheless, I find these statistics useful, mostly to identify people
in the community whose contributions may have been overlooked, and I
present them in the hope that you may also find them to be useful.
A couple more things before I close. I do still intend to do an annual blog post with the statistics as they stand at year-end. Subsequent corrections will show up on the contributions page but the blog post itself won’t get edited after the fact. And finally, as you may notice, my blog has been moved to rhaas.dev as well; hopefully, that’s where you’re reading this. Comments are now via Giscus, so you’ll need a GitHub account if you want to comment. Blogger was nice in that anonymous comments were possible, but 99%+ of them were spam, and some worthwhile ones got swept up into the spam as well, so in the end, it wasn’t as nice as it sounded. If commenting here doesn’t work for you, or you have things you want to tell me privately, rhaas.dev/about has all my contact information, and I’m happy to hear from you.
Thanks, as always, for reading.