what you probably looking for is formatting the output into a string.Postgresql will store it as 2.3, because that is what 2.30 is anyway.Its up to you to format it before passing it on to the user/businesslogic/whatever.