postgres scriptname fix