The pgmodule.c file has been split into 7 parts in version 5.1, but is still a single compilation unit. We may want to add proper header files for each part and make them compile separately. (copied from Trac ticket 78, created 2019-04-24)