I dug into the Postgres sources to write my own WAL receiver · HackerTrans