Postgres Array Length In C