Fixed pg version
Commented out alert
User functions with scalar output (vector output assigns only last component)