Postgresql Substring Function Example In C