I noticed that some header files included system header files for no apparent reason, so I did some digging and found out that in a few cases the original reason has disappeared. So I propose the attached patches to remove the unnecessary includes.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных