Postgresql Get Function In C