Maybe it is also useful to take a look to the commits that are related to postgres, so you get an idea of what changes you need to apply somehow. Check this link that will give you
all the commits that contain the words: postgres or PG on the comments section.