Fixed unnecessary recreation of protocol and function

+ Added new version of postgres-config half-done, turned off.