Patches for fixes compilation of check_pgsql with postgresql 8.3 [sf#1878972] [#884]