I love that infinitely nerdy stuff like this can still make it to the HN homepage (there's still hope!).
Stuff like this really needs to make it into the PG tuning guide (https://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Serv...). The only place where it will ultimately be seen by a worthwhile audience.