Fix uncommon postgres function into osmosis_deadend