Call Postgres Function From C