As promised here is a patch with defines for all of the protocol messages.
I created a protocol.h file and put it in src/includesI'm fairly sure that some of the names I used may need to be changed but the grunt work of finding and replacing everything is done.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных