Support and test postgresql. Fix #28