Extend postgresql support