Patches for check_pgsql patch for XID wraparound check [sf#1445062] [#613]