Postgresql Substring Function Example C