Postgresql Array Length Function In Cpp