postgresql: add some fixes