Postgresql Sql Substring Example