postgresql: recovery state change from int to bool